Backbone.CustomSync
Backbone.CustomSync is a Backbone.js plugin that allows you to write custom methods for all sync procedures ("read", "create", "update", and "delete"), or only those that you define.
Features
- AMD, CommonJS and Global compliant
- Compatible with promise-based syncing
- Preserves original
sync
functionality with anxhrSync
method
Getting Started
Backbone.CustomSync can be used in both front-end and node applications.
Bower
bower install -S backbone.customsync
NPM
npm install --save backbone.customsync
Usage
Backbone.CustomSync exposes an extended Model
and Collection
with Backbone.CustomSync.Model
and Backbone.CustomSync.Collection
.
var Todo = BackboneCustomSyncModel;