I realized that in Angular we have two ways of displaying the values in the DOM.
One is using the {{}}
keys, and others, is using the ng-bind
attribute.
Example with braces:
<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 forms will print the values in Dom
.
But in relation to these two forms, I ask:
-
Using
ng-bind
, being an attribute, can be more performative than using keys? -
What are the strengths and weaknesses of using one or the other?