mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 04:25:08 +00:00
Use the navigation service in the fuse-navigation for easier navigation swap
This commit is contained in:
parent
edb4683dcb
commit
95759be710
|
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user