@ui-tool/core
Version:
21 lines • 1.25 kB
TypeScript
import { OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { IFeatureSentinelService } from './feature-sentinel-service.interface';
import { Subscription } from 'rxjs';
import * as i0 from "@angular/core";
export declare class FeatureSentinelDirective implements OnInit, OnDestroy {
protected readonly _requireFeaturePermissionService: IFeatureSentinelService;
protected readonly _viewContainerRef: ViewContainerRef;
protected readonly _templateRef: TemplateRef<any>;
private __names;
private __elseTemplateRef?;
private __displayFeatureContent$;
protected readonly _subscription: Subscription;
set name(value: string | string[]);
set elseTemplate(value: TemplateRef<any>);
constructor(_requireFeaturePermissionService: IFeatureSentinelService, _viewContainerRef: ViewContainerRef, _templateRef: TemplateRef<any>);
ngOnInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FeatureSentinelDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<FeatureSentinelDirective, "[hasFeatureAccess]", never, { "name": "hasFeatureAccess"; "elseTemplate": "hasFeatureAccessElse"; }, {}, never>;
}
//# sourceMappingURL=feature-sentinel.directive.d.ts.map