ember-subarray-proxy

0.2.3 • Public • Published

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

Dependencies (2)

Dev Dependencies (14)

Package Sidebar

Install

npm i ember-subarray-proxy

Weekly Downloads

0

Version

0.2.3

License

MIT

Last publish

Collaborators

  • salzhrani