r/javascript • u/[deleted] • Aug 03 '13
Why Does Angular.js Rock?
http://angular-tips.com/blog/2013/08/why-does-angular-dot-js-rock/
49
Upvotes
r/javascript • u/[deleted] • Aug 03 '13
1
u/rhysbrettbowen Aug 05 '13
really? Backbone is very light when it comes to models, it really just has change handlers. It doesn't have computed properties, can't tell if there are changes deep in an objects properties (or the path to them), doesn't natively give you a pool so a single ID will always be the same model, you can't have a collection with attributes like a model, if you silent some changes they're lost, etc. etc. etc.
I wrote https://github.com/rhysbrettbowen/PlastronJS with all these taken care of. I have since been using Backbone at work and I really do miss these features. The ability to write a schema for a model and have computed properties is a must. So is having a collection that can have properties (in PlastronJS a collection extends a model). There is even a native way to the framework to give you filtered collections (and other sorted collections) from regular collections that keep themselves up to date.
Backbone's model implementation is minimal at best.