From 073de444dbf948e24dec75ced05fed2c9b5d171b Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 6 Dec 2020 15:59:11 +0100 Subject: [PATCH] Close sidenav on route --- src/app/components/menu-list-item/nav.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/menu-list-item/nav.service.ts b/src/app/components/menu-list-item/nav.service.ts index 24302d3..83354c0 100644 --- a/src/app/components/menu-list-item/nav.service.ts +++ b/src/app/components/menu-list-item/nav.service.ts @@ -11,6 +11,7 @@ export class NavService { this.router.events.subscribe((event: Event) => { if (event instanceof NavigationEnd) { this.currentUrl.next(event.urlAfterRedirects); + this.closeNav(); } }); }