I have a list of items in scope
whick i use for building some ion-list
and i got a popove whcihr:
$ionicPopover.fromTemplateUrl('popover.html', { scope: $scope }).then(function(popover) { $scope.popover = popover; });
In popover.html
i have some element with ng-show directive which tirggers some visibility function :
<p ng-show=checkVisibility()" >Some staff here</p>
The problem is this function triggers too much times, is thre any way to reduce the function calls to one when i show popover?
P.s. Here is PEN