Bootstrapping data models in Ember?

ember-data, ember.js

Solution

Use

App.Store.load(App.YourModel, yourdata);

See this question:

Ember-data bootstrapping model objects

edit: not sure if you can load multiple objects at once - you may have to loop your collection. Suggest using something like underscore.js

Problem

I would like to bootstrap an application with data without having to do an additional request. Assuming I have a simple user model with the following json: ``` {"user":{"id":1,"email":"test@example.com"}} ``` This json is being dumped by a Rails app. How best should I bootstrap my `User` model in Ember?

Original source