I am beginner in Ember.js. Here is the problem I am facing Simple parent-child routes without any params is setup. Trying to avoid child route query parameters as they show up in URL. /car route template contains: Car size dropdown component at top 4 buttons with 4 vendor names, click on button shows data below for that vendor. vendors data is implemented as routes. So each button calls a link-to route – /car/vendor1 – /car/vendor2 Idea is car size selection changes will change the vendor data. Vendor data is fetched using ember data. model() hook. The car size parameter is used in Ember data fetch query. Car size selection change is propagated to /car route action correctly. So /car route contains selected car size property.
How to pass this car size property to current child route? So if I am currently seeing vendor1 data then just changing car size selection doesn’t change the route but still I want to invoke /car/vendor1 model hook.
Alternately tried to access the property in setupController of /car/vendor1 using this.controllerFor(parent) but not sure how to fire model hook.