fuse-angular/src/app/core/components/layout/layout.component.ts
Sercan Yemen 6f159f54c8 fuse2...
2017-07-12 17:34:32 +03:00

31 lines
744 B
TypeScript

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
{
layoutSettings: { navigation: string, toolbar: string, footer: string };
constructor(private layoutService: LayoutService)
{
this.layoutSettings = layoutService.getSettings();
}
ngOnInit()
{
this.layoutService.onSettingsChanged
.subscribe(
(newSettings) =>
{
this.layoutSettings = newSettings;
}
);
}
}