Backbone.js: Collection’s “change” event isn’t firing

The change event is only fired when one of the collections’ models are modified. When a model is added to the collection the add event is fired.
See Backbone.js’ Collection Documentation:

You can to bind “change” events to be notified when any model in the
collection has been modified, listen for “add” and “remove”
events[…]

To listen for when an add occurs modify your code to be

var c = new AwesomeCollection();
c.bind("add", function(){
  console.log('Collection has changed.');
});

c.add({testModel: "Test"}); 

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)