angular-ui-router State transition Use $state.transitionTo to transition between states


Use $state.transitionTo to go form one state to another. This is a low level method to transition and $state.go is the recommended way for most common use cases as it uses this method internally.

$state.transitionTo(toState [, toParams] [, options])

toState - the state to transition to

toParams (optional) - a map of parameters to send the target state

options (optional) - the state transition options


$state.transitionTo("dashboard.history", {period: "week"}) 
// transitions to the history child state with a state parameter