I am currently working with Angular 5 and jQuery. I created a dynamic div through jQuery which I appended to a div.
var push_div = '<div class="col-md-6">
<span style="color: green;">' +
droppedItemID + '</span>
<a href="javascript:void(0)"
(click)="removeContent()">X</a>
</div>'
$(push_div).hide().appendTo("#" + dropZoneID).fadeIn(1000);
When I click on the link, the removeContent
function is not calling.
removeContent() {
console.log("function called");
}