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

Silly query params question

$
0
0

@efx wrote:

I have a handful of routes that use the same controller in my application. They use a few sticky query parameters so users can conveniently load some state in the app. Yay URLs!

I also have <LinkTo> in route template.

Must I always pass @query to these LinkTo components and any transitionTo invocation? Or should the query parameters and their selected values persist throughout navigation until I navigate with transitionTo('my-route', { queryParams: { someProp: null }}) or clear the properties on the controller?

I think I see https://github.com/emberjs/ember.js/issues/16349 in my application but wanted to confirm my understanding of how query parameters should work.

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles