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
One possible answer would be to create a directive that does whatever you want to do. If you then use that directive only within the section of HTML controlled by the ng-if, then the directive will be dormant until the ng-if expression is true.