I am using the new Ember query parameters and have problems "canceling" the query parameter.
I have a scenario where I need to switch from something like :? game = 13 to? question = 14. This means that I have two query parameters on my router: game, question. Unfortunately, this transition (outgoing from the game = 13):
this.transitionToRoute({queryParams: {question: 14}} );
Unfortunately, this leads to:
?game = 13 &. Question = 14
I also tried:
this.transitionToRoute({queryParams: {question: 14, game: null}} );
that leads to:
?game = zero & question = 14
Because for some reason everything is converted to a string.
How can I upgrade to? question = 14 and remove the game request parameter?
source share