I am trying to make a function call only when the element is visible. I am using Bootstrap to control the visibility.
<td class="hidden-xs col-sm-4 col-md-4 col-lg-4"
ng-if="dataObject.property==false"
ng-class="{'custom_class':$last}"
ng-init="test()">
test() is getting called whether the element is visible or not. How can I fix this?