adding the following 'hyperlink' to html like:
<a style="color:white" ng-click="ClickMe()"><i class="fa fa-trash-o" style="color:white"></i>Click</a>
and then use this code to trigger click
event like
$scope.ClickMe = function () { alert("clicked"); }
works fine, but this did not work when 'hyperlink' generated dynamically like
$('<a style="color:white" ng-click="ClickMe()"><i class="fa fa-trash-o" style="color:white"></i>Click</a>').insertAfter("#dashboard_link");
Could anyone explain why did that happen?