Package org.angular.ts.ng
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTypeScript callback contract for this method.static interfaceTypeScript callback contract for this method. -
Method Summary
Modifier and TypeMethodDescriptionelemental2.core.JsArray<StateDeclaration> deregister(Object stateOrName) Public StateRegistryService.deregister member exposed by the AngularTS namespace contract.Public StateRegistryService.getState member exposed by the AngularTS namespace contract.elemental2.core.JsArray<StateDeclaration> Public StateRegistryService.getStates member exposed by the AngularTS namespace contract.Public StateRegistryService.onStatesChanged member exposed by the AngularTS namespace contract.register(StateDeclaration stateDefinition) Public StateRegistryService.register member exposed by the AngularTS namespace contract.root()Public StateRegistryService.root member exposed by the AngularTS namespace contract.
-
Method Details
-
deregister
Public StateRegistryService.deregister member exposed by the AngularTS namespace contract.- Parameters:
stateOrName- Value supplied for the stateOrName parameter.- Returns:
- Method result.
-
getState
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
StateRegistryService.Subscription onStatesChanged(StateRegistryService.OnStatesChangedListener listener) Public StateRegistryService.onStatesChanged member exposed by the AngularTS namespace contract.- Parameters:
listener- Value supplied for the listener parameter.- Returns:
- Method result.
-
register
Public StateRegistryService.register member exposed by the AngularTS namespace contract.- Parameters:
stateDefinition- Value supplied for the stateDefinition parameter.- Returns:
- Method result.
-
root
StateDeclaration root()Public StateRegistryService.root member exposed by the AngularTS namespace contract.- Returns:
- Method result.
-