Created
March 4, 2014 16:59
-
-
Save vseventer/9350543 to your computer and use it in GitHub Desktop.
Kinvey JavaScript library for Ember.js: defining models.
This file contains 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
// Define a `Book` model, and set the adapter to Kinvey. | |
App.Book = Kinvey.Model.extend({ | |
// `Kinvey.Model` provides your models with three attributes: | |
// `acl`, `createdAt`, and `lastModifiedAt`. Add your own here. | |
author: DS.attr('string'), | |
title : DS.attr('string') | |
}); | |
App.BookAdapter = Kinvey.RESTAdapter; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment