I am working on the Angular-6 project. I have many child routes for my application. One of them is as follow:
const routes: Routes = [ { path: \'inn
Use Activated Route. As index of the params array you can use any parameter name.
Activated Route
params
constructor(private itunes:SearchService, private route: ActivatedRoute) { this.route.params.subscribe( params => params[]); }