samedi 21 novembre 2015

QueryParams not changing URL

I am currently trying to set queryParams using transitionTo. For whatever reason, when I try to set queryParams, nothing happens (my URL remains the same).

My code looks like this:

routes/recipes/index.js:

    actions: {

    ingredientQuery (query) {
        console.log(query);
        this.transitionTo({ queryParams: { ingredients: query }});
    }

}

When the action is triggered, sure enough I get the correct query value, but that's it. In case it matters, I'm on Ember v 1.13.8




Aucun commentaire:

Enregistrer un commentaire