ember-property-computed
This is an ember-cli addon that provides an alternative way of defining computed properties. It works just like Ember.computed
except that it takes the function as the first argument, not the last. (This is the same order that's used when defining computed properties using the .property
prototype extension.)
Installation
ember install ember-property-computed
Usage
;; // Define an object with a computed propertyvar ObjectWithComputedProperty = EmberObject; var instance = ObjectWithComputedProperty;instance;console;// two lines of output to the console:// "computed property function called"// "newValue"
Development
Installation
git clone
this repositorynpm install
bower install
Running
ember server
- Visit your app at http://localhost:4200.
Running Tests
ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.