-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Roman Shtylman edited this page Nov 30, 2013
·
4 revisions
Bamboo is a lightweight model library aimed at simplifying the 90% case of CRUD operations for basic entities in client side apps.
It simplifies the loading and saving of predefined schema Models which are designed to behave like builtin javascript objects.
Bamboo model instances also provide convenience methods for events trigger by state changes to these models (changed properties, CRUD state, etc).
var Model = require('bamboo/model');
var Author = Model({
name: {
first: String,
last: String
},
email: String
});
module.exports = Author;
Separating models from view/template bindings in this manner helps separate concern in your app architecture. Bamboo plays nice with view/template libraries which support event-link bindings.
Start by reading over the Model docs and sync docs to understand the majority of how bamboo works.