mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-18 23:36:11 +01:00
a bit more of a refactoring
This commit is contained in:
parent
1d6c0554a3
commit
b50775a96a
3 changed files with 27 additions and 12 deletions
|
|
@ -12,7 +12,9 @@ export class ContentTop {
|
|||
|
||||
constructor(private _state:AppState) {
|
||||
this._state.subscribe('menu.activeLink', (activeLink) => {
|
||||
this.activePageTitle = activeLink.title;
|
||||
if (activeLink) {
|
||||
this.activePageTitle = activeLink.title;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue