Home Will the ternary operator be executed on every digest?
Reply: 0

Will the ternary operator be executed on every digest?

user460
1#
user460 Published in May 24, 2018, 4:00 pm

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?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.373944 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO