import { Component , OnInit } from '@angular/core' ; import { ConfigType , SettingsService } from '../../providers/settings.service' ; import { ToolbarService } from '../../providers/toolbar.service' ; @ Component ( { templateUrl : './settings.component.html' , selector : 'tw-settings' , styleUrls : [ './settings.component.scss' ] } ) export class SettingsComponent implements OnInit { config : ConfigType ; constructor ( private settings , private toolbarService ) { this . config = this . settings . getConfig ( ) ; } ngOnInit ( ) { this . toolbarService . setTitle ( 'Settings' ) ; this . toolbarService . setLogo ( 'settings' ) ; } configChanged ( ) { this . settings . setConfig ( this . config ) ; } }