I have below statement,
<div class="container" ng-controller = "SampleController" ng-init = "init()" >
in addition to the above div, I have anchor tags as below
<a class="sampleclass">a1</a>
<a class="sampleclass">a2</a>
<a class="sampleclass">a3</a>
and in my example controller, I have defined my init function as below:
$scope.init = function(){
$('.sampleclass').attr('href','#');
};
Will my init function get called when the entire dom gets loaded or quickly get called just after the first div gets loaded(the which triggered the init function)
Thanks, Balaji