mardi 7 juin 2016

Reload Ember Parent Model on Child Route Change

I have a parent route that holds a series of tabs (which are child routes).

The parent route has a model that hits a JSONAPI endpoint for gathering data that is tangentially related to the data of its children.

The data that the parent route accesses can change fairly quickly, so I would like to update it whenever the user traverses between the child routes.

Is there a way to essentially re-resolve a model hook on a parent route each time that one of its children is transitioned to?




Aucun commentaire:

Enregistrer un commentaire