Removes a state from the registry
the state's name or object representation
a list of removed states
Gets all registered states
Gets a registered state
Gets all registered states
Calling this method with no arguments will return a list of all the states that are currently registered. Note: this does not return states that are queued but not yet registered.
a list of StateDeclarations
Gets a registered state
Given a state or a name, finds and returns the StateDeclaration from the registry. Note: this does not return states that are queued but not yet registered.
either the name of a state, or a state object.
a registered StateDeclaration that matched the stateOrName
, or null if the state isn't registered.
Listen for a State Registry events
Listen for a State Registry events
Adds a callback that is invoked when states are registered or deregistered with the StateRegistry.
a callback function invoked when the registered states changes.
The function receives two parameters, event
and state
.
See StateRegistryListener
a function that deregisters the listener
Adds a state to the registry
Adds a state to the registry
Registers a [[StateDefinition]] or queues it for registration.
Note: a state will be queued if the state's parent isn't yet registered. It will also be queued if the queue is not yet in StateQueueManager.autoFlush mode.
the definition of the state to register.
the internal State object. If the state was successfully registered, then the object is fully built (See: StateBuilder). If the state was only queued, then the object is not fully built.
Gets the implicit root state
Gets the implicit root state
Gets the root of the state tree. The root state is implicitly created by UI-Router. Note: this returns the internal State representation, not a StateDeclaration
Generated using TypeDoc
Removes a state from the registry
This removes a state from the registry. If the state has children, they are are also removed from the registry.