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
this._fuseNavigationService.onNavigationChanged
.pipe(takeUntil(this._unsubscribeAll))
.subscribe((key) => {
this._fuseNavigationService.getNavigation(key);
.subscribe(() => {
this.navigation = this._fuseNavigationService.getCurrentNavigation();
});
}
}