I'm creating an element as follows:
let tmplt=``;
for(let i=0;i<wht.length;i++){
tmplt +=`<li title="${wht[i]}" style="color:#000">
<span (click)="slctRmv($event)">×</span>${wht[i]}
</li>`;
}
jQuery("#myId").prepend(tmplt);
It is appending to the myId but click event is not triggering as in template.
So is there solution for this in angular2.