2017-07-06 19:10:31 +03:00
|
|
|
import { Component } from '@angular/core';
|
2017-08-01 17:42:21 +03:00
|
|
|
import { NbThemeService } from '@nebular/theme';
|
2017-07-06 19:10:31 +03:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'ngx-temperature',
|
|
|
|
|
styleUrls: ['./temperature.component.scss'],
|
2017-07-10 16:35:55 +03:00
|
|
|
templateUrl: './temperature.component.html',
|
2017-07-06 19:10:31 +03:00
|
|
|
})
|
|
|
|
|
export class TemperatureComponent {
|
2017-07-06 22:33:06 +03:00
|
|
|
|
2017-07-14 18:55:38 +03:00
|
|
|
temperature: number = 24;
|
2017-07-10 16:35:55 +03:00
|
|
|
temperatureOff: boolean = false;
|
|
|
|
|
temperatureMode = 'cool';
|
|
|
|
|
|
2017-07-13 16:00:49 +03:00
|
|
|
humidity: number = 87;
|
2017-07-10 16:35:55 +03:00
|
|
|
humidityOff: boolean = false;
|
2017-07-13 16:00:49 +03:00
|
|
|
humidityMode = 'heat';
|
2017-07-07 19:54:49 +03:00
|
|
|
|
2017-08-01 15:42:06 +03:00
|
|
|
colors: any;
|
2017-07-06 22:33:06 +03:00
|
|
|
|
2017-08-01 17:42:21 +03:00
|
|
|
constructor(private theme: NbThemeService) {
|
2017-07-20 12:28:25 +03:00
|
|
|
this.theme.getJsTheme().subscribe(config => {
|
2017-08-01 15:42:06 +03:00
|
|
|
this.colors = config.variables;
|
2017-07-06 22:33:06 +03:00
|
|
|
});
|
|
|
|
|
}
|
2017-07-06 19:10:31 +03:00
|
|
|
}
|