I am having some issues with embers transitionTo, I can’t get it to pass a parameter through to a state inside context. Trying to use
test: Ember.Route.transitionTo('step', {step:1}),
But this doesn’t pass the value of step in the context to the route. If I had a state ‘final’ and used
test: Ember.Route.transitionTo('final'),
the route final is entered, as obviously no context is passed
Working demo at http://jsfiddle.net/reubenposthuma/6p6XJ/167/
I think what you are looking for might be the
router.send()method, which accepts a second argument as context.so if you have this defined in your router
Then you should be able to call
from wherever you want in code. That
{step:1}will then be passed as the context to the route.