in Angular, I need to call a function after an element with certain class has been loaded. Display of the element is controlled via ng-if=\'expr\'. Value of $scope.expr is set a
Simplest solution in my view is to do the following:
Your callback will be called only when what is affected by ng-if has been rendered.
ng-if