injectNavigationEnd
Created by Mateusz Stefańczyk
Import
Usage
Basic
Create an Observable that emits when a navigation ends in Angular’s Router.
Use Outside of an Injection Context
The injectNavigationEnd
function accepts an optional Injector
parameter, enabling usage outside of an injection context.
API
Inputs
injector?: Injector
- Optional. Allows using the function outside of an Angular injection context.
Outputs
- Emits an Observable of
NavigationEnd
events from Angular’s Router.