observable
Get and set attributes and watch for changes. The simplest type of model there is. Will work with Reactive and emits both Backbone-style and Reactive-style events ('change:foo' vs 'change foo').
Installation
Component:
component install anthonyshort/observable
npm:
npm install observable-component
Usage
var Observable = ;var model = ; model; model; // Color was undefined, now it is redmodel; // Color was red, now it is blue // Set many at oncemodel; // Set attributes silentlymodel; // Get the attributemodel // red
You can mix it in too:
{ this;} ; var thing = ;thing // 'red'