observ-bind
v1.0.2
Published
Two way data binding for observables
Downloads
6
Readme
observ-bind
Two way data binding for observables
Install
$ npm install --save observ-bind
Usage
var observBind = require('observ-bind')
var Observ = require('observ')
var observ1 = Observ(1)
var observ2 = Observ(2)
observBind(observ1, observ2)
observ1.set('a')
observ2()
//=> a
API
observBind(observ1, observ2)
-> function
Returns a function that will cancel the two-way binding when called.
observ1 / observ2
Required
Type: function
Observable values to be bound.
License
MIT © Ben Drucker