RouterXModule
integrates with Angular's router to extend its capacities.
Some of the services in the module are independent and will work even when the module is not imported. For better tree-shaking it is prefer importing RouterXModule
only when specified in the docs.
Use RouterXModule.forRoot()
when importing in AppModule
.
Use RouterXModule.forChild()
when importing in child/feature modules.
navigation-x
child-module for magical routing capabilities. 🪄Name | Description | Module Independent |
---|---|---|
UrlReflectionService | Provides to reflect on urls and extract their different parts. | ❌ |
RouterOutletComponentBus | Provides access to the instances of components activated by router outlets. Used together with PublishComponentDirective . |
❕ |
RouteAware (abstract) | Simplified the creation of services and components that work with routes. | ✔ |
Name | Description |
---|---|
PublishComponentDirective | Integrates with router outlets to publish activated components to RouterOutletComponentBus . |