adrianlee44 / ng-backbone

Backbone data model and collection for AngularJS
http://adrianlee44.github.io/ng-backbone/
MIT License
44 stars 8 forks source link

Update the read me and wiki to cover events being propagated to collections. #3

Open chemoish opened 10 years ago

chemoish commented 10 years ago

The biggest point of note is model.delete() calling collection.delete()

chemoish commented 9 years ago

Oh the good ole days. If we start to use this I'll update the documentation and the page to be less crappy. Hopefully not repeat so much documentation, but give a head start.

http://backbonejs.org/#Collection

Any event that is triggered on a model in a collection will also be triggered on the collection directly, for convenience. This allows you to listen for changes to specific attributes in any model in a collection, for example: documents.on("change:selected", ...)