I have some code here:
this.$state.transitionTo('questions.question', { testId: this.$qs.userTestId, cq: this.$qs.cq + 1 });
this.$state.transitionTo('questions.question', { testId: this.$qs.userTestId, cq: this.$qs.cq - 1 });
The value of this.$qs.cq is 1.
When my code runs for the first case instead of changing it to 2 it makes it into "11". How can I make it so it does a numeric addition (and subtraction for the seconds case)?
I did define in typescript:
cq: number;
but it doesn't seem to give an error