I have some html code generated by Angular using put,sample of code:
a.put("ngTagsInput/tags-input.html", '<div class="host" tabindex="-1"
ti- transclude-append=""></div>')
However when I attempt to attach any jquery event handler to any of the elements, it does not work. Here is an example of the jquery that i am using:
$(".host").on('click',function(){
alert('hi');
});
Do I need to compile the HTML code generated by Angular, or is there something im doing wrong with jquery?