@NgModule({
...
imports: [
...
RtQueryParamsRouterLinkModule,
RtPlatformModule.forRoot({
localBaseUrl: 'some_local_url',
serverBaseUrl: 'some_server_url',
}),
],
})
export class AnyModule {
}
<nav>
<div
class="rt-query-params-router-link__link"
classActiveLink="rt-query-params-router-link__link_active"
rtQueryParamsRouterLink
[linkQueryParams]="{param: 'param-1'}">
/components/rt-query-params-router-link?param=param-1
</div>
<div
class="rt-query-params-router-link__link"
classActiveLink="rt-query-params-router-link__link_active"
rtQueryParamsRouterLink
[linkQueryParams]="{param: 'param-2'}">
/components/rt-query-params-router-link?param=param-2
</div>
<div
class="rt-query-params-router-link__link"
classActiveLink="rt-query-params-router-link__link_active"
rtQueryParamsRouterLink
[linkQueryParams]="{param: 'param-3'}">
/components/rt-query-params-router-link?param=param-3
</div>
</nav>