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:

snippet
<div>
Name of the student is {{::studentName }}
</div>
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +