0

There is a similar question here but it is not referred to the template.

What I want is to create a link that simply adds or modifies a queryParamenters in the currently -unkwown- route.

<a [routerLink]="[¿¿¿???]" [queryParams]="{ pageIndex: 3 }"
 {{ 3 }}
</a>
RTYX
  • 1,244
  • 1
  • 14
  • 32

1 Answers1

1

Okay, it seems it's as easy as:

<a [routerLink]="[]" [queryParams]="{ pageIndex: 3 }"
 {{ 3 }}
</a>
RTYX
  • 1,244
  • 1
  • 14
  • 32