javascript - meaning of :: in angular formly -


i'm trying learn how work angular firmly , i'm having trouble understanding of syntax used in guides , examples on official website. when defining button form control saw template:

<div><button type="{{::to.type}}" class="btn btn-{{::to.btntype}}" ng-click="onclick($event)">{{to.text}}</button></div> 

my question is: meaning of "::" before "to.type" , "to.btntype"? how being used? how different defining this:

<a ng-class="{'btn-primary': to.isprimary, active: to.isactive}" class="btn, btn-default"/> 

it one-time binding expression, stops proliferation of watchers can cause performance issues.

here useful reading: http://blog.thoughtram.io/angularjs/2014/10/14/exploring-angular-1.3-one-time-bindings.html


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -