I am trying to learn how to work with angular firmly, and I am having trouble understanding some of the syntaxes used in the manuals and examples on the official site . when defining button shape control, I saw this template:
<div><button type="{{::to.type}}" class="btn btn-{{::to.btnType}}" ng-click="onClick($event)">{{to.text}}</button></div>
my question is: what is the meaning of "::" before "to.type" and "to.btnType"? How is it used? how it differs from defining it like this:
<a ng-class="{'btn-primary': to.isPrimary, active: to.isActive}" class="btn, btn-default"/>
javascript angularjs angular-formly
Dror Cohen
source share