ng-backbone icon indicating copy to clipboard operation
ng-backbone copied to clipboard

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

Open chemoish opened this issue 10 years ago • 1 comments

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

chemoish avatar Sep 04 '14 22:09 chemoish

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", ...)

chemoish avatar Jan 24 '15 05:01 chemoish