smartvar
v0.1.2
Published
create smart variables in a functional reactive style
Downloads
1
Readme
SmartVar
Create smart variables/models in a functional reactive style
- Reactive Model Supporting
- Live link SmartVars to other SmartVars
- Supports computed properties based on local and other SmartVar propeties
var myModel = new SmartVar({ firstName: 'mark','lastName: 'norman', displayName: (parent) => { parent.registerDependency(displayName), [firstName, lastName]) } });
myModel
.changes()
.filter( function() { })
.bindTo($('#test1');
myInput('#inp1') .sendTo(myModel, 'filterPath');