0.0.1 • Published 9 years ago
ember-buffered-proxy-component v0.0.1
Ember BufferedProxy Component
An Ember Component that uses BufferedProxy to enable change buffering at the view level.
Usage
{{model.name}}
{{#buffered-proxy content=model as |content apply discard hasChanges|}}
{{content.name}} (Has changes: {{hasChanges}})
{{input value=content.name}}
<button {{action apply}}>Apply</button>
<button {{action discard}}>Discard</button>
{{/buffered-proxy}}
Using {{buffered-proxy}}
s block param, content.name
gets disconnected from
model.name
, once it's changed and the changes hasn't been applied back to the
outer context. Firing a discard
action resets the proxy value. Check out
the tests for more info.
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/.
0.0.1
9 years ago