I have a parent component on the route '/parent', it has a links e.g.
<a routerLink="./" [queryParams]="{query: value}">
I have a component in the nested route '/parent/child', that listens for query params change. The problem is that parent component generates links without child route e.g. "/parent?query=value". Is there any way to only add query params to current route from parent component?
{
path: 'route/:value/:value_two',
component: component,
canActivate: [GuardService],
children: [{
path: '',
component: commonComponent
}, {
path: 'child1',
component: childOneComponent
}, {
path: 'child2',
component: childTwoComponent
}]
}