How to access a parent model within a nested index route using ember.js?

From within the AppointmentIndexRoute‘s model hook you can use modelFor(‘day’) to access the parent model. For example:

App.AppointmentIndexRoute = Ember.Route.extend({
  model: function(params) {
    day = this.modelFor("day");
    ...
  }
});

Another example is here: emberjs 1.0.0pre4 how do you pass a context object to a resource “…Index” route?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)