Standard way to submit form and transition route

Surprisingly enough i cant find any docs for this at all.

I have a component containing a form. On clicking ‘submit’ i want to transition to a different route.

Where do i call the ‘transitionTo’ method from since components dont have reference to the router?

Hey pdeva, you should send an action up to the route. When you handle that action in the route you’ll be able to call this.transitionTo(...).

1 Like