RouterXModule

@bespunky/angular-zen - Official Docs

X for eXtension

RouterXModule integrates with Angular's router to extend its capacities.

Importing The Module

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.

Checkout the new navigation-x child-module for magical routing capabilities. 🪄

Utils

Checkout the new standalone routing utils. 🪄

Services

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.

Directives

Name Description
PublishComponentDirective Integrates with router outlets to publish activated components to RouterOutletComponentBus.

results matching ""

    No results matching ""