Use the navigation service in the fuse-navigation for easier navigation swap

This commit is contained in:
Sercan Yemen 2018-06-14 18:00:22 +03:00
parent edb4683dcb
commit 95759be710

View File

@ -47,8 +47,8 @@ export class FuseNavigationComponent implements OnInit
// Subscribe to the current navigation changes // Subscribe to the current navigation changes
this._fuseNavigationService.onNavigationChanged this._fuseNavigationService.onNavigationChanged
.pipe(takeUntil(this._unsubscribeAll)) .pipe(takeUntil(this._unsubscribeAll))
.subscribe((key) => { .subscribe(() => {
this._fuseNavigationService.getNavigation(key); this.navigation = this._fuseNavigationService.getCurrentNavigation();
}); });
} }
} }