Interview Questions

How to add http headers to backbone model?

Use the following code to add headers to backbone model

var model = Backbone.Model.extend({
        headers: {"header1":"value1"}
});

0
No votes yet
Your rating: None