Created
March 13, 2014 21:04
-
-
Save nlf/9536964 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
var verymodel = require('verymodel'); | |
var VeryModel = verymodel.VeryModel; | |
var VeryCollection = verymodel.VeryCollection; | |
var Tour = new VeryModel({ | |
name: {} | |
}); | |
// with a collection | |
var Tours = new VeryCollection(Tour); | |
Tours.push({ name: 'test' }); | |
// with an array | |
var Tours2 = []; | |
Tours2.push(Tour.create({ name: 'test' })) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment