angular-ui-router
  • Introduction
  • Configuring State
  • Activating State
  • Named Views
  • Nested State
  • onEnter onExit
  • Passing Data
  • Resolve Property
  • State Params
  • State Service
  • State Events
  • Abstract State
Powered by GitBook
On this page

Was this helpful?

State Service

// $state methods
$state.go("home");
$state.reoad() // reload current state
$state.get() // returns array of states in application

// $state properties
$state.current // reference to currently active state
$state.params // params with current active state

// Events
$stateChangeStart
$stateChangeSuccess
$stateChangeError
$stateNotFound
PreviousState ParamsNextState Events

Last updated 5 years ago

Was this helpful?