How do i bind new event to DOM from controller in angular dynamically.
For html
<a href= "section" class="mdcl" />
say in jquery i will add click event
$(".mdcl").on('click',function(){
//Do something
});
How do i do the same thing in angular js dynamically
usually we add in DOM which is straight forward
<a href= "section" class="mdcl" ng-click="functon()"/>
but if i don't have the control over DOM say content is coming from some where else and i need to add click event based on the class. how do i do this angular way?
Apologize if am repeating questions..i didn't come across similar question..
Thanks