Last active
April 26, 2017 17:49
-
-
Save scott-w/a238079946f7df80572d5010684b880b to your computer and use it in GitHub Desktop.
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
import {Model} from 'backbone'; | |
export const NoteModel = Model.extend({ | |
urlRoot: '/notes/', | |
defaults: { | |
header: '', | |
body: '' | |
} | |
}); |
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
import {Collection} from 'backbone'; | |
import {NoteModel} from 'note.js'; | |
export const NoteCollection = Collection.extend({ | |
model: NoteModel, | |
url: '/notes/' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment