Skip to content

defunctzombie/reactive-bamboo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

reactive adapter for bamboo

Resources

Stars

Watchers

Forks

Packages

No packages published