C:/GoDev/src/TCSTK-Angular/projects/tibco-tcstk/tc-core-lib/src/lib/directives/on-create.directive.ts
Selector | [tcOnCreate] |
Methods |
Inputs |
Outputs |
constructor()
|
idx | |
Type : Number
|
|
fireCreated | |
Type : EventEmitter
|
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
import {Directive, EventEmitter, Input, OnInit, Output} from '@angular/core';
@Directive({
selector: '[tcOnCreate]',
exportAs: 'onCreate'
})
export class OnCreateDirective implements OnInit {
@Input() idx: Number;
@Output() fireCreated = new EventEmitter();
constructor() {
}
ngOnInit(): void {
this.fireCreated.emit();
}
}