ngx-admin/src/app/pages/dashboard/temperature/temperature.component.ts

27 lines
620 B
TypeScript
Raw Normal View History

2017-07-06 19:10:31 +03:00
import { Component } from '@angular/core';
import { NgaThemeService } from '@akveo/nga-theme';
2017-07-06 19:10:31 +03:00
@Component({
selector: 'ngx-temperature',
styleUrls: ['./temperature.component.scss'],
templateUrl: './temperature.component.html',
2017-07-06 19:10:31 +03:00
})
export class TemperatureComponent {
2017-07-14 18:55:38 +03:00
temperature: number = 24;
temperatureOff: boolean = false;
temperatureMode = 'cool';
humidity: number = 87;
humidityOff: boolean = false;
humidityMode = 'heat';
themeConfig: any = {};
constructor(private theme: NgaThemeService) {
2017-07-20 12:28:25 +03:00
this.theme.getJsTheme().subscribe(config => {
this.themeConfig = config;
});
}
2017-07-06 19:10:31 +03:00
}