Using angularJS, i am appending jQuery DOM element to an ng-repeat structure, and i want the element to be able to use a method from my angular controller (removeMember). Obviously at the moment that does not work. Here is my code
$( "#table tbody" ).append( "<tr class="+id_of_member+"><td>"+user_email+"</td><td><a href=\"#/\" ng-click=\"teamCtrl.removeMember("+id_of_member+")\">Remove The Member</a></td></tr>");
Obviously everything renders ok, but when i click the href tag, nothng happens (the ng-click does not get called). I guess AngularJS does not work for the newly appended element. How can i make the link work (call the removeMember method from angularjs teamCtrl controller).