If I use the ternary operator in my Angular.js view will it be executed on every digest(like functions) or only if the variables necessary for the decision are changed?
Example:
<div>{{ui.isTrue ? "foo" : "bar"}}</div>
or:
<div ng-bind="ui.isTrue ? 'foo' : 'bar'"></div>
Would it be executed on every digest or only when is ui.IsTrue changed?