Home

Awesome

reactive-bamboo Build Status

reactive adapter for bamboo to update the reactive view with real-time bamboo model changes.

var reactive = require('reactive');
var Model = require('bamboo/model');
var ReactiveBamboo = require('reactive-bamboo');

var User = Model({
    email: String,
    name: {
        first: String,
        last: String
    }
});

var user = User();
user.name = {
    first: 'Rob',
    last: 'Zombie'
};

var view = reactive('<p>{name.first} {name.last}</p>', user, {
    adapter: ReactiveBamboo
});

// <p>Rob Zombie</p>

user.name.first = 'Defunct';

// <p>Defunct Zombie</p>

License

MIT