0.1.2 • Published 10 years ago
smartvar v0.1.2
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');