I have the following Html component:
<a [routerLink]="['experts']" [queryParams]="{profession:handyman}" class="category">
<img src="../../assets/metal-saw.svg" width="60" height="60">
<span>HandyMan</span>
</a>
The problem is that when I click on the link, the experts route takes me, but without the queryparams
. That is, queryparams
does not seem to work but routerLink
if it does.
I am using angular in its version 5. Does anyone know why this happens?