I am searching a way to add elements in Angular per Typescript Code. The problem is, that these elements should have a (click) function and I don't know, how many of these elements should be added (for example a for loop with any range should create any amount of elements).
textausgabe.innerHTML += '<div (click)="caller()"'>click</div>';
This created the element correctly, but if I click on it, nothing happens.
Do you know a way to solve my problem, than please show me how :)