fuse-angular/src/app/core/components/layout/layout.component.ts

31 lines
744 B
TypeScript
Raw Normal View History

2017-07-12 12:35:07 +00:00
import { Component, OnInit } from '@angular/core';
import { LayoutService } from '../../services/layout.service';
@Component({
selector : 'fuse-layout',
templateUrl: './layout.component.html',
styleUrls : ['./layout.component.scss']
})
export class LayoutComponent implements OnInit
{
2017-07-12 14:34:32 +00:00
layoutSettings: { navigation: string, toolbar: string, footer: string };
2017-07-12 12:35:07 +00:00
constructor(private layoutService: LayoutService)
{
this.layoutSettings = layoutService.getSettings();
}
ngOnInit()
{
this.layoutService.onSettingsChanged
.subscribe(
(newSettings) =>
{
this.layoutSettings = newSettings;
}
);
}
}