{{::x}} ...">

Angularjs - what does it mean: mean?

In some angular js files, I see the syntax below. What does double :: "mean" mean?

<span>{{::x}}</span>
<div>{{::y.z()}}</div>
+4
source share
3 answers

This feature is called unidirectional data binding and comes with Angular 1.3 . For older versions, there is an equivalent add-in called bindonce .

From Angular JS Documentation :

An expression starting with :: is considered a one-time expression. Disposable expressions cease to be recounted as soon as they are stable, which happens after the first digest if the result of the expression is undefined

, :

{{::x}}

Angular , x. , x , .

+2

, angular js 1.3 +

{{:: title}}

, , . Doc
+1

All Articles