mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-22 10:20:14 +01:00
20 lines
465 B
TypeScript
20 lines
465 B
TypeScript
import {Component} from '@angular/core';
|
|
|
|
import {AppState} from "../../../app.state";
|
|
|
|
@Component({
|
|
selector: 'content-top',
|
|
styles: [require('./contentTop.scss')],
|
|
template: require('./contentTop.html'),
|
|
})
|
|
export class ContentTop {
|
|
activePageTitle = '';
|
|
|
|
constructor(private _state:AppState) {
|
|
this._state.subscribe('menu.activeLink', (activeLink) => {
|
|
if (activeLink) {
|
|
this.activePageTitle = activeLink.title;
|
|
}
|
|
});
|
|
}
|
|
}
|