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

Refresh model when the queryParam of a parent route changes

$
0
0

@gerrit wrote:

Hello I have the case that I have a “queryParam” on the application route called location_id.

I want the model of some child routes to refresh, when the queryParameter from the applicationRoute changes. So add to the child routes:

    queryParams: {
        location_id:  { refreshModel:true }
    }

I get an error:

    You're not allowed to have more than one controller property map to the same query param key.

I created a twittle: https://ember-twiddle.com/11274016f3075425bdecf8b020cdaa07?numColumns=0

Any ideas?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles