Interface StateRegistryService


@JsType(isNative=true, name="ng.StateRegistryService", namespace="<global>") public interface StateRegistryService
Public `$stateRegistry` contract for dynamic route registration. Module-owned static routes should normally use [[NgModule.router]]. Use this service when routes must be added or removed at runtime.
  • Method Details

    • deregister

      elemental2.core.JsArray<StateDeclaration> deregister(Object stateOrName)
      Public StateRegistryService.deregister member exposed by the AngularTS namespace contract.
      Parameters:
      stateOrName - Value supplied for the stateOrName parameter.
      Returns:
      Method result.
    • getState

      StateDeclaration getState(Object stateOrName, Object base)
      Public StateRegistryService.getState member exposed by the AngularTS namespace contract.
      Parameters:
      stateOrName - Value supplied for the stateOrName parameter.
      base - Value supplied for the base parameter.
      Returns:
      Method result.
    • getStates

      elemental2.core.JsArray<StateDeclaration> getStates()
      Public StateRegistryService.getStates member exposed by the AngularTS namespace contract.
      Returns:
      Method result.
    • onStatesChanged

      Public StateRegistryService.onStatesChanged member exposed by the AngularTS namespace contract.
      Parameters:
      listener - Value supplied for the listener parameter.
      Returns:
      Method result.
    • register

      StateDeclaration register(StateDeclaration stateDefinition)
      Public StateRegistryService.register member exposed by the AngularTS namespace contract.
      Parameters:
      stateDefinition - Value supplied for the stateDefinition parameter.
      Returns:
      Method result.
    • root

      Public StateRegistryService.root member exposed by the AngularTS namespace contract.
      Returns:
      Method result.