UNPKG

@ohayojp/acl

Version:
21 lines (20 loc) 770 B
import { OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core'; import { ACLService } from './acl.service'; import { ACLCanType } from './acl.type'; export declare class ACLIfDirective implements OnDestroy { private srv; private _viewContainer; private _value; private _change$; private _thenTemplateRef; private _elseTemplateRef; private _thenViewRef; private _elseViewRef; constructor(templateRef: TemplateRef<void>, srv: ACLService, _viewContainer: ViewContainerRef); set aclIf(value: ACLCanType); set aclIfThen(templateRef: TemplateRef<void> | null); set aclIfElse(templateRef: TemplateRef<void> | null); except: boolean; protected _updateView(): void; ngOnDestroy(): void; }