Is there any difference between {{ }} and ng-bind in angular.
I am quite new to Angular. I started with using {{ }} and then in the documentation i find ng-bind. I
The most obvious difference between them is Flash of Unstyled content while using {{ ... }}
.
However, there is a more subtle difference between the two if the object you pass to {{ obj }}
and ng-bind="obj"
is not a string.
From https://stackoverflow.com/a/19744728/987185 :
Depending on whether you use
{{ ... }}
orng-bind
syntax, the.toJSON
and the.toString
function on your object will be called to determine its representation.