Created
March 17, 2014 23:20
-
-
Save triniMahn/9610406 to your computer and use it in GitHub Desktop.
Shows the Backbone Model set up for use with Backbone-orm on the server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class window.Todo extends Backbone.Model | |
| #You can use this to test the (client-side) app logic if you're having issues with BackboneORM to start | |
| #localStorage: new Backbone.LocalStorage('todos-backbone-marionettejs') | |
| urlRoot: '/todos' | |
| #Use backbone-http to communicate with your server -- overriding the model sync method here | |
| sync: BackboneHTTP.sync(Todo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment