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