I have to display a table and call a function for every row of table and the function called once for a row.
-
2021-01-24 23:33
You can add a directive
@Directive({ selector: '[invoke]'})
class InvokeDirective {
@Output() invoke:EventEmitter = new EventEmitter();
ngAfterContentInit() {
this.invoke.emit(null);
}
}
And the use it like