I have 3 models that are related: Parent > Child > Grandchild.
Parent hasMany Child
Child hasMany Grandchild
I have a route /grandchildren
that loads all grandchild
records.
In the grandchildren template
I am able to call .
My question is how do I access the Parent's attributes from the same template? I tried but it's coming up empty.
What is the Ember way to access a related model's attribute that's 2 levels deep?
Aucun commentaire:
Enregistrer un commentaire