ember-data-preload
Why?
Preloading deeply nested relationships is possible w/ ember-data, but it can be a little messy
For example, if we have a List
model, each record of which has many ListItem
s, each of which has an Assignee
, and we wanted to load all of the relevant data by the time the route was done resolving, we'd have to do something like this:
EmberRoute;
Use
First, install this addon in your ember-cli app
ember install ember-data-preload
And then, you may preload relationships (i.e., in a route)
; Route;
Particularly when relationship hierarchies are deep, this can be particularly time-saving
; Route;
This README outlines the details of collaborating on this Ember addon.
Installation
git clone
this repositorynpm install
bower install
Running
ember server
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.