import { Component } from '@angular/core'; import { NgaThemeService } from '@akveo/nga-theme'; @Component({ selector: 'ngx-temperature', styleUrls: ['./temperature.component.scss'], templateUrl: './temperature.component.html', }) export class TemperatureComponent { temperature: number = 23; temperatureOff: boolean = false; temperatureMode = 'cool'; humidity: number = 23; humidityOff: boolean = false; humidityMode = 'auto'; themeConfig: any = {}; constructor(private theme: NgaThemeService) { this.theme.getConfig().subscribe(config => { this.themeConfig = config; }); } }