My goal is to master working with Angular, but I'm struggling to grasp some of the syntax used in the guides and examples on the official website. In one example for defining a button form control, I came across this template:
<div><button type="{{::to.type}}" class="btn btn-{{::to.btnType}}" ng-click="onClick($event)">{{to.text}}</button></div>
What does the "::" before "to.type" and "to.btnType" mean? How is it utilized? How does that differ from defining it like this:
<a ng-class="{'btn-primary': to.isPrimary, active: to.isActive}" class="btn, btn-default"/>