The name of the builder function to decorate.
A function that is responsible for decorating the original builder function. The function receives two parameters:
{object}
- state - The state config object.{object}
- super - The original builder function.$stateProvider - $stateProvider instance
Registers an invalid state handler
Registers an invalid state handler
This is a passthrough to StateService.onInvalid for ng1.
A unique state name, e.g. "home", "about", "contacts". To create a parent/child state use a dot, e.g. "about.sales", "home.newest".
State configuration object.
Generated using TypeDoc
object
ui.router.state.$stateProvider
ui.router.router.$urlRouterProvider
ui.router.util.$urlMatcherFactoryProvider
The new
$stateProvider
works similar to Angular's v1 router, but it focuses purely on state.A state corresponds to a "place" in the application in terms of the overall UI and navigation. A state describes (via the controller / template / view properties) what the UI looks like and does at that place.
States often have things in common, and the primary way of factoring out these commonalities in this model is via the state hierarchy, i.e. parent/child states aka nested states.
The
$stateProvider
provides interfaces to declare these states for your app.