in my .html file in angular js i have this , but i] now it calls method checkIsActive() unlimited and got memory issue, but i want to call checkIsActive only when the page is refreshed. how can i specify that method checkIsActive should be called only each time page is refreshed
  >  <html>
    >         , <div   id ="test"  ng-if="checkIsActive()" class="sticky-icon-bar">  
    >         > </div>
    >     </html> ,, ,, ,, ,,,,
<div></div>
 
    