0
I realized that in Angular we have the two ways to display values in the DOM.
One is using the keys {{}}
, and others, is using the attribute ng-bind
.
Keyed example:
<div ng-repeat="moderador in ['bigown', 'rray']">
{{ moderador }}
</div>
Example with ng-bind
:
<div ng-repeat="moderador in ['bigown', 'rray']" ng-bind="moderador">
</div>
Both of the above ways will print the values in the Dom
.
But in relation to these two forms, I ask:
Use
ng-bind
, because it is an attribute, it can be more performatic than using keys?What are the points for and against using one or the other?
Kindly, who gave the negative, could present the problem in the question? Thus, I could improve her content by helping anyone who has doubts to be qualified in Saná them
– Wallace Maxters