dimanche 17 décembre 2017

Change in Query Param not refreshing the route

I have set the queryParam setting in the route to refresh the model if the query param changes. However when the query param changes setupController is not called. Any idea why this is happening?

export default Route.extend({
  queryParams: {
    id: {
      refreshModel: true
    }
  },

  setupController(controller) {
    controller.start(); // fetches data synchronously from api
  }
});




Aucun commentaire:

Enregistrer un commentaire