I have added one item using JQuery but i want to add click event to remove this item but click is not triggered,So please help me.
This is my code,
.ts file
addmore() {
var html = "<ion-item class='Ids" + this.exp + "' style='margin: 15px 10px 0px 10px;'>";
html += " <ion-label position='floating' style='color: gray !important;'>Experience</ion-label>";
html += " <ion-input type='text'></ion-input>";
html += " <ion-icon class='remove' name='remove-circle' slot='end' style='margin-top:12%;font-size:18px;' (click)='removeExp()'></ion-icon>";
html += "</ion-item>";
console.log(this.exp);
$(".experience").append(html);
this.exp++;
}
removeExp() {
console.log("hi");
}