mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 08:20:13 +01:00
19 lines
438 B
TypeScript
19 lines
438 B
TypeScript
|
|
import { Component } from '@angular/core';
|
||
|
|
import { NbThemeService } from '@nebular/theme';
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: 'ngx-kitten',
|
||
|
|
styleUrls: ['./kitten.component.scss'],
|
||
|
|
templateUrl: './kitten.component.html',
|
||
|
|
})
|
||
|
|
export class KittenComponent {
|
||
|
|
|
||
|
|
currentTheme: string;
|
||
|
|
|
||
|
|
constructor(private themeService: NbThemeService) {
|
||
|
|
this.themeService.getJsTheme().subscribe(theme => {
|
||
|
|
this.currentTheme = theme.name;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|