17 lines
265 B
TypeScript
17 lines
265 B
TypeScript
import { Injectable } from '@angular/core';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class ThemeService
|
|
{
|
|
|
|
isLightTheme = true;
|
|
|
|
getClassTheme(): string
|
|
{
|
|
if(this.isLightTheme) return "lightTheme" ;
|
|
else return "darkTheme"
|
|
}
|
|
|
|
}
|