News for hackers. Stuff that matters.
Re:AngularJS 1.3.0 by thebenedict on Tuesday October 14, 2014 @04:01AM (#8452378)
You can use it anywhere but it'll be especially helpful for long lists. Angular binds anything in double curlies, creating watchers that dirty check and evaluate with every digest cycle. It's tempting (and IMO Angular incorrectly encourages users) to use double curlies for templating everwhere, so in typical list views you can end up with thousands of watchers on data that never needs to change once the page is rendered. This is slow, especially for searching and sorting. Further reading[1]

Before this release it's been necessary to write custom directives or use a tool like Bindonce[2] to turn off data binding where it's not needed.

[1] http://tech.small-improvements.com/2013/09/10/angularjs-perf...

[2] https://github.com/Pasvaz/bindonce

There are no comments on this comment yet.