Request models outside of route or model hook

I’m not fully aware of your context, but when I’m faced with these sorts of problem, I tend to use the setupController hook to load my data from the store.

So, for example:

App.StandardRoute = Ember.Route.extend({
  model: function(params) {
    this.store.find('item', params.item_id);
  },
  setupController: function(controller, model) {
    store = this.store;
    store.get('thing').then(function(allThings) {
      controller.set('allThings', allThings);
    });
    controller.set('model', model);
  }
});

Perhaps this is nothing to do with what you’re talking about. I hope it helps.

3 Likes