fuse-angular/src/app/app.component.ts

35 lines
793 B
TypeScript
Raw Normal View History

import {Component, ElementRef, OnInit, ViewChild} from '@angular/core';
import {LayoutService} from './core/services/layout.service';
@Component({
selector : 'fuse-root',
templateUrl: './app.component.html',
styleUrls : ['./app.component.scss'],
providers : [LayoutService]
})
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()
{
}
}