rt-query-params-router-link
TypeScript icon, indicating that this package has built-in type declarations

18.0.0 • Public • Published

RT QUERY PARAMS ROUTER LINK v1.0.0

  • rtQueryParamsRouterLink - base path
  • classActiveLink - class for active link

Install

npm i rt-query-params-router-link
yarn add rt-query-params-router-link

Usages

@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>

Dependents (0)

Package Sidebar

Install

npm i rt-query-params-router-link

Weekly Downloads

0

Version

18.0.0

License

MIT

Unpacked Size

36.4 kB

Total Files

12

Last publish

Collaborators

  • andriy_podolian