import { Component } from '@angular/core'; import { NgaThemeService } from '@akveo/nga-theme'; @Component({ selector: 'ngx-temperature', styleUrls: ['./temperature.component.scss'], template: `
{{ powerOff ? '--' : (temperature | ngxRound) }}
Celsius
Content #2
`, }) export class TemperatureComponent { temperature: number = 23; powerOff: boolean = false; themeConfig: any = {}; constructor(private theme: NgaThemeService) { this.theme.getConfig().subscribe(config => { this.themeConfig = config; }); } }