cell2

0.3.0 • Public • Published

cell2

cell programming (aka observers, signals/slots, computed properties)

Usage

var observable = require('riot').observable // or require('cell2/observable')
  , Cell = require('cell2').assign({observable: observable})
  , cat = Cell()('Fluffy').get(iLoveCat).on('change', iLoveCat)
  ;
cat('Pickles');
function iLoveCat(cat2) {
  console.log('I love '+cat2+'!');
}
I love Fluffy!
I love Pickles!

/cell2/

    Package Sidebar

    Install

    npm i cell2

    Weekly Downloads

    2

    Version

    0.3.0

    License

    Apache

    Last publish

    Collaborators

    • btakita