0.2.3 • Published 9 years ago

ember-subarray-proxy v0.2.3

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Ember-subarray-proxy

Build Status

This is an implementation of of Ember.ArrayProxy that allow for getting a slice of an array that is DOM friendly and efficient. If the content array changes the proxy doesn't tear down and rebuild the proxy, instead it conveys the actual changes if any.

This project is inspired by ember-cli-array-slice

Example

import SubarrayProxy from 'ember-subarray-proxy';

var slice = SubarrayProxy.create({
  content: Ember.A(['a', 'b', 'c']),
  limit: 2
});

slice.get('length') // 2
slice.get('content.length') // 3

Installation

npm install ember-subarray-proxy --save-dev

Running Tests

  • ember test
  • ember test --server