ember-cli-array-pauser
Ember CLI array pauser addon.
ember-cli-array-pauser
exposes an Ember ArrayProxy subclass
which can be paused and resumed.
Example
;; var arr = Ember;var stream = ArrayPauser; arr;arr;console; // ['original', 'to remove', 'to change']stream;arr;arr;arr;console; // ['original', 'to remove', 'to change']stream;console; // ['original', 'changed', 'new item']
Properties
content
: Ember.Array (optional, default = null
)
The content array. Must be an object that implements Ember.Array
and/or
Ember.MutableArray
. See Ember.ArrayProxy#content
.
isPaused
: Boolean (optional, default = false
)
This value determines the pause state of this array proxy.
Installing
With npm:
$ npm install --save ember-cli-array-pauser
Or with Ember CLI:
$ ember install:npm ember-cli-array-pauser