Given a route config
{
path: \'/root/:rootId\',
children: [{
path: \'/child1/:child1Id\',
children: [{
path: \'/child2/:child2
You need to iterate the route segments.
Something like
var params = [];
var route = router.routerState.snapshot.root;
do {
params.push(route.params);
route = route.firstChild;
} while(route);
This gives you the list of params
of each route segment, you then can read the param values from them that you want.
Object.keys(params)
might work to get all available param names from a param
instance.