From 95759be710f906a4f4917379ea0b85126c35ee93 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Thu, 14 Jun 2018 18:00:22 +0300 Subject: [PATCH] Use the navigation service in the fuse-navigation for easier navigation swap --- src/@fuse/components/navigation/navigation.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@fuse/components/navigation/navigation.component.ts b/src/@fuse/components/navigation/navigation.component.ts index a133a35d..36f6b0f4 100644 --- a/src/@fuse/components/navigation/navigation.component.ts +++ b/src/@fuse/components/navigation/navigation.component.ts @@ -47,8 +47,8 @@ export class FuseNavigationComponent implements OnInit // Subscribe to the current navigation changes this._fuseNavigationService.onNavigationChanged .pipe(takeUntil(this._unsubscribeAll)) - .subscribe((key) => { - this._fuseNavigationService.getNavigation(key); + .subscribe(() => { + this.navigation = this._fuseNavigationService.getCurrentNavigation(); }); } }