You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
449 B

import { AfterViewInit, Directive, EventEmitter, Input, Output } from '@angular/core';
@Directive({
selector: '[hook=ngAfterViewInit]'
})
export class RenderDirective implements AfterViewInit {
ngAfterViewInit(): void {
this.afterViewInit.emit(this._data);
}
@Output()
public afterViewInit: EventEmitter<any> = new EventEmitter();
@Input()
public set hookData(value: any) {
this._data = value;
}
private _data: any;
}