I have the following code:
data-ng-if="(fooCtrl.displayControl(1))
displayControl
method return a true
or false
.
What I found is thatngif
is constantly listening for this even after it has been evaluated once. How I found this, was by pointing a break point on the method. After a few F8(in debugger), it will continue as normal.
Why is ngif
is executing the method continuously?