Skip to content

Repository files navigation

Ember BufferedProxy Component Build StatusEmber Observer Score

An Ember Component that uses BufferedProxy to enable change buffering at the view level.

Usage

{{model.name}}{{#buffered-proxycontent=modelas |contentapplydiscardhasChanges|}}{{content.name}} (Has changes: {{hasChanges}})
{{inputvalue=content.name}}
<button{{actionapply}}>Apply</button>
<button{{actiondiscard}}>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 repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

About

An Ember Component that uses BufferedProxy to enable change buffering at the view level

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages