A UI-Router Module's imperative configuration
If a UI-Router Module needs to perform some configuration (such as registering parameter types or Transition Hooks)
a configClass
should be supplied.
Mark the class as @Injectable()
and inject any required dependencies.
When the module is being loaded, an instance will be created and injected.
Example: ```js
The module's UI-Router states
This list of Ng2StateDeclaration objects will be registered with the StateRegistry.
Also, the components that the states route to will be added to entryComponents
so they will be compiled.
Chooses a LocationStrategy
.
The location strategy enables either HTML5 Push State (Requires server-side support) or "HashBang" URLs.
When false
, uses PathLocationStrategy
When true
, uses HashLocationStrategy
Defaults to false
Generated using TypeDoc
UI-Router declarative configuration which can be provided to UIRouterModule.forRoot