O'Reilly logo
  • Biao Xie thinks this is interesting:

Consider the size of expressions being watched

Even if we manage to avoid deep-watches we should still try to think about an exact value being watched and compared by AngularJS. This is not always obvious, especially with watches registered by AngularJS while processing templates.

See the following example of a longer text with one AngularJS expression inside:

<p>This is very long text that refers to one {{variable}} defined on a scope. This text can be really, r...


Cover of Mastering Web Application Development with AngularJS


为什么 AngularJS 的 expression 比 ngBind 慢 refs: http://stackoverflow.com/q/16125872/449162 http://stackoverflow.com/q/25741586/449162