UNPKG

ng-config-cat

Version:

An Angular service for ConfigCat

19 lines (18 loc) 803 B
import { OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core'; import { ConfigCatUser } from '../models'; import { NgConfigCatService } from '../services/ng-config-cat.service'; export declare abstract class NgConfigCatFeatureBaseDirective<T = null> implements OnInit, OnDestroy { private viewContainerRef; private templateRef; private ngConfigCatService; abstract featureName: string; abstract defaultValue?: boolean; abstract user?: ConfigCatUser; protected abstract shouldFeatureBeEnabled: boolean; private destroy$; private viewRef; protected constructor(viewContainerRef: ViewContainerRef, templateRef: TemplateRef<T>, ngConfigCatService: NgConfigCatService); ngOnInit(): void; ngOnDestroy(): void; protected render(): void; }