ng-config-cat
Version:
An Angular service for ConfigCat
26 lines • 1.19 kB
JavaScript
import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
import { NgConfigCatService } from '../services/ng-config-cat.service';
import { NgConfigCatFeatureBaseDirective } from './ng-config-cat-feature-base.directive';
export class NgConfigCatFeatureEnabledDirective extends NgConfigCatFeatureBaseDirective {
constructor(viewContainerRef, templateRef, ngConfigCatService) {
super(viewContainerRef, templateRef, ngConfigCatService);
this.defaultValue = false;
this.shouldFeatureBeEnabled = true;
}
}
NgConfigCatFeatureEnabledDirective.decorators = [
{ type: Directive, args: [{
selector: '[ngConfigCatFeatureEnabled]'
},] }
];
NgConfigCatFeatureEnabledDirective.ctorParameters = () => [
{ type: ViewContainerRef },
{ type: TemplateRef },
{ type: NgConfigCatService }
];
NgConfigCatFeatureEnabledDirective.propDecorators = {
featureName: [{ type: Input, args: ['ngConfigCatFeatureEnabled',] }],
defaultValue: [{ type: Input, args: ['ngConfigCatDefault',] }],
user: [{ type: Input, args: ['ngConfigCatUser',] }]
};
//# sourceMappingURL=ng-config-cat-feature-enabled.directive.js.map