I have a very strange problem: index.html
The component added by the router gets the router segment (ActivatedRoute
) passed, but in a service there is no activated route. You can subscribe to router.events and traverse the routes tree (router.firstChild...`) to get params out of a specific route sequement you need.
See also https://github.com/angular/angular/issues/11023