Backbone.sync for the model

Is there a way to use a different Backbone.sync method to subset the models in the application?

I experimented with socket.io binding models, but I don't want all of them to work that way. I would like some of them to stick to REST.

I ask the wrong question, and redefining synchronization is the wrong approach?

+6
source share
1 answer
var Model = Backbone.Model.extend({ sync: function (method, model, options) {} }) 
+10
source

Source: https://habr.com/ru/post/905415/


All Articles