mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-18 07:25:28 +01:00
contentTop -> baContentTop
This commit is contained in:
parent
1224cf17db
commit
e125febda6
7 changed files with 11 additions and 10 deletions
|
|
@ -0,0 +1,21 @@
|
|||
import {Component} from '@angular/core';
|
||||
|
||||
import {AppState} from "../../../app.state";
|
||||
|
||||
@Component({
|
||||
selector: 'ba-content-top',
|
||||
styles: [require('./baContentTop.scss')],
|
||||
template: require('./baContentTop.html'),
|
||||
})
|
||||
export class BaContentTop {
|
||||
|
||||
public activePageTitle:string = '';
|
||||
|
||||
constructor(private _state:AppState) {
|
||||
this._state.subscribe('menu.activeLink', (activeLink) => {
|
||||
if (activeLink) {
|
||||
this.activePageTitle = activeLink.title;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue