@clr/angular
Version:
Angular components for Clarity
39 lines (38 loc) • 1.53 kB
TypeScript
import { EventEmitter, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
import { IfActiveService } from './if-active.service';
import * as i0 from "@angular/core";
export declare class ClrIfActive implements OnDestroy {
private ifActiveService;
private id;
private template;
private container;
/**********
* @property activeChange
*
* @description
* An event emitter that emits when the active property is set to allow for 2way binding when the directive is
* used with de-structured / de-sugared syntax.
*
*/
activeChange: EventEmitter<boolean>;
private subscription;
private wasActive;
constructor(ifActiveService: IfActiveService, id: number, template: TemplateRef<any>, container: ViewContainerRef);
/**
* @description
* A property that gets/sets IfActiveService.active with value.
*
*/
get active(): boolean | string;
set active(value: boolean | string);
ngOnDestroy(): void;
/**
* @description
* Function that takes a any value and either created an embedded view for the associated ViewContainerRef or,
* Clears all views from the ViewContainerRef
*/
updateView(value: boolean): void;
private checkAndUpdateView;
static ɵfac: i0.ɵɵFactoryDeclaration<ClrIfActive, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ClrIfActive, "[clrIfActive]", never, { "active": "clrIfActive"; }, { "activeChange": "clrIfActiveChange"; }, never, never, false, never>;
}