Close sidenav on route

master
Max 4 years ago
parent c9602a40ef
commit 073de444db

@ -11,6 +11,7 @@ export class NavService {
this.router.events.subscribe((event: Event) => { this.router.events.subscribe((event: Event) => {
if (event instanceof NavigationEnd) { if (event instanceof NavigationEnd) {
this.currentUrl.next(event.urlAfterRedirects); this.currentUrl.next(event.urlAfterRedirects);
this.closeNav();
} }
}); });
} }

Loading…
Cancel
Save