Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4830

Routes with same query params

$
0
0

@accelerate wrote:

If I have a route and sub-route (eg. /reports/:report_id and /reports/:report_id/charts/:chart_id) and they have both the same query parameters (eg. "start_date" & "end_date"), should I define the query parameters in both routes, or should I only define the params in the parent route, and the sub-route just take the query parameters from its parent route (via this.controllerFor(), for example)? Is there a definitive Ember way, or are both options valid with their own pros/cons?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles