import { Component } from '@angular/core'; import { NbThemeService } from '@nebular/theme'; @Component({ selector: 'ngx-traffic', styleUrls: ['./traffic.component.scss'], template: ` Traffic Consumption
`, }) export class TrafficComponent { type: string = 'month'; types = ['week', 'month', 'year']; currentTheme: string; constructor(private themeService: NbThemeService) { this.themeService.getJsTheme().subscribe(theme => { this.currentTheme = theme.name; }); } }