One-Time Binding Expression

AngularJS also provides a one-time binding of an expression. The one-time binding expression value, once set, will not change. If a variable is being updated on every click, normal binding would cause the display to change each time the variable changes. However, in a one-time bind expression, the display will remain set to the first valid value. A one-time expression can be defined using double colon (::). The following code shows the use of one-time expression binding:

Name of the student is {{::studentName }}
Related Tutorial
Follow Us #
Contents +