mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-22 18:30:14 +01:00
21 lines
489 B
TypeScript
21 lines
489 B
TypeScript
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;
|
|
}
|
|
});
|
|
}
|
|
}
|