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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -