Ember.js in Action by Joachim Haagen Skeie

Ember.js in Action by Joachim Haagen Skeie

Author:Joachim Haagen Skeie
Language: eng
Format: epub, pdf
Publisher: Manning Publications


I’ve mentioned that Ember Data employs a lazy loading structure for your data. For the Montric application, the data for a chart won’t be loaded before the application requests access to either the name or the series property of the Montric.Chart model. This is fine for this use case, because you’re only loading charts one at a time when the user selects a chart from the tree menu.

But for other types of data, this can lead to a significant number of AJAX calls between the client and the server. To tackle this issue, Ember Data supports embedding and sideloading data in the JSON hash returned from the server. Embedding works slightly differently than standard relationships, so let’s take a look at embedded records.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.