UNPKG

@karelics/angular-unleash-proxy-client

Version:

Angular wrapper for [unleash-proxy-client](https://github.com/Unleash/unleash-proxy-client-js).

20 lines (19 loc) 988 B
import { DestroyRef, OnInit } from '@angular/core'; import { UnleashService } from '../unleash.service'; import { NgIfContext } from '@angular/common'; import { Observable } from 'rxjs'; import { TemplateRef } from '@angular/core'; import * as i0 from "@angular/core"; export declare abstract class FeatureDirective implements OnInit { protected readonly unleashService: UnleashService; protected readonly destroyRef: DestroyRef; private readonly ngIf; private readonly toggleNamesSubject; protected abstract toggleState$: (toggleNames: string[]) => Observable<boolean>; ngOnInit(): void; protected setToggleNames(names: string[]): void; protected update(state: boolean): void; protected setElseTemplate(templateRef: TemplateRef<NgIfContext<boolean>> | null): void; static ɵfac: i0.ɵɵFactoryDeclaration<FeatureDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<FeatureDirective, never, never, {}, {}, never, never, true, never>; }