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
ListItems, 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:
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)
Particularly when relationship hierarchies are deep, this can be particularly time-saving
This README outlines the details of collaborating on this Ember addon.
git clonethis repository
- Visit your app at http://localhost:4200.
ember try:testallto test your addon against multiple Ember versions)
ember test --server
For more information on using ember-cli, visit http://www.ember-cli.com/.