O'Reilly logo
  • hao wang thinks this is interesting:

Using ng-bind Versus Double Curlies

The advantage ng-bind has over the double-curly notation is that it takes AngularJS time to bootstrap and execute before it can find and replace all the double curly braces from the HTML. That means, for a portion of a second while the browser starts, you might see flashing double curly braces in the UI before AngularJS has the chance to kick in and replace them. This is only for the very first page load, and not on views loaded after the first load. You will not have that issue with ng-bind. You can also get around that issue with the ng-cloak directive.


Cover of AngularJS: Up and Running


ng-bind 与 {{}} 的区别。