Since AngularJS version 1.3.0-beta.10, a new feature has been introduced called the "lazy one-time binding".
To implement this feature, you can prefix simple expressions with ::
, which instructs AngularJS to stop watching the expression after it has been evaluated for the first time. An example of this syntax is:
<div>{{::user.name}}</div>
Is there an equivalent syntax available for more complex expressions like the ones below?
<div ng-if="user.isSomething && user.isSomethingElse"></div>
<div ng-class="{classNameFoo: user.isSomething}"></div>