ng-config-cat
Version:
An Angular service for ConfigCat
26 lines • 1.2 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 NgConfigCatFeatureDisabledDirective extends NgConfigCatFeatureBaseDirective {
constructor(viewContainerRef, templateRef, ngConfigCatService) {
super(viewContainerRef, templateRef, ngConfigCatService);
this.defaultValue = false;
this.shouldFeatureBeEnabled = false;
}
}
NgConfigCatFeatureDisabledDirective.decorators = [
{ type: Directive, args: [{
selector: '[ngConfigCatFeatureDisabled]'
},] }
];
NgConfigCatFeatureDisabledDirective.ctorParameters = () => [
{ type: ViewContainerRef },
{ type: TemplateRef },
{ type: NgConfigCatService }
];
NgConfigCatFeatureDisabledDirective.propDecorators = {
featureName: [{ type: Input, args: ['ngConfigCatFeatureDisabled',] }],
defaultValue: [{ type: Input, args: ['ngConfigCatDefault',] }],
user: [{ type: Input, args: ['ngConfigCatUser',] }]
};
//# sourceMappingURL=ng-config-cat-feature-disabled.directive.js.map