lundi 26 juin 2017

Append query parameters after queryParam update in Ember.js

I defined the queryParams in the controller and I need to add additional query parameters which is not used inside the controller and can be anything. It's an analytics thing. Ember deletes that additional parameter after it updates the URL.

Example:

In the Controller:

queryParams: ['fin', 'ftw'],
fin: null,
ftw: null,

url:

localhost:3000?fin=111&ftw=121&anatylicsvalue=1

when I change the value of fin or ftw, anatylicsvalue is removed. I need the app to retain that bit of string.

What is the best way of doing this?




Aucun commentaire:

Enregistrer un commentaire