0
var BasicModel = Backbone.Model.extends({

   url : function() {
       return "/something";
    }

});

var basicModel = new BasicModel();
basicModel.fetch();

If BasicModel is a collection, then the follwoing is possible

   this.on("add", function (model) {
         console.log(model);
    });

Is there any lisiting event I can bind for Backbone model, which get invoked after fetch happened?

Nageswaran
  • 7,481
  • 14
  • 55
  • 74

2 Answers2

1

use change event.

in your model.

this.on("change", function);

or in your view

this.model.on("change", function);
user10
  • 5,186
  • 8
  • 43
  • 64
0
basicModel.fetch({success:function(){
      //do whatever you want
}});
Ravi Hamsa
  • 4,721
  • 3
  • 14
  • 14