UNPKG

dynamic-theme-lib

Version:

A flexible and powerful theme management library for Angular applications that allows dynamic color management and theme switching.

18 lines (17 loc) 850 B
import { ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { ColourService } from '../services/colour.service'; import * as i0 from "@angular/core"; export declare class BackgroundColorDirective implements OnInit, OnChanges, OnDestroy { private el; private colorService; libBackgroundColour: string; private colorSubscription; private currentColor; constructor(el: ElementRef, colorService: ColourService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; private applyColor; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundColorDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundColorDirective, "[libBackgroundColour]", never, { "libBackgroundColour": "libBackgroundColour"; }, {}, never>; }