2017-07-08 16:12:52 +00:00
|
|
|
import {Component, ElementRef, OnInit, ViewChild} from '@angular/core';
|
|
|
|
import {LayoutService} from './core/services/layout.service';
|
2017-06-27 08:08:19 +00:00
|
|
|
|
|
|
|
@Component({
|
2017-07-08 16:12:52 +00:00
|
|
|
selector : 'fuse-root',
|
|
|
|
templateUrl: './app.component.html',
|
|
|
|
styleUrls : ['./app.component.scss'],
|
|
|
|
providers : [LayoutService]
|
2017-06-27 08:08:19 +00:00
|
|
|
})
|
2017-07-08 16:12:52 +00:00
|
|
|
export class AppComponent implements OnInit
|
|
|
|
{
|
|
|
|
layoutSettings: { toolbar: any, navigation: any };
|
|
|
|
|
|
|
|
constructor(private layoutService: LayoutService)
|
|
|
|
{
|
|
|
|
this.layoutSettings = layoutService.getSettings();
|
|
|
|
}
|
|
|
|
|
|
|
|
ngOnInit()
|
|
|
|
{
|
|
|
|
this.layoutService.settingsChanged
|
|
|
|
.subscribe(
|
|
|
|
(newSettings) =>
|
|
|
|
{
|
|
|
|
this.layoutSettings = newSettings;
|
|
|
|
}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
onNameChange()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2017-06-27 08:08:19 +00:00
|
|
|
}
|