Skip to content

Instantly share code, notes, and snippets.

@nlf
Created March 13, 2014 21:04
Show Gist options
  • Save nlf/9536964 to your computer and use it in GitHub Desktop.
Save nlf/9536964 to your computer and use it in GitHub Desktop.
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