M
M
MrRob0t2018-05-08 16:10:43
Angular
MrRob0t, 2018-05-08 16:10:43

How to fix Can't bind to 'queryParams' since it isn't a known property of 'a'?

5af1a1cf454c1660809957.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dmitrygavrish, 2018-05-08
@MrRob0t

Judging by the template code displayed in the error message, your link does not have [routerLink]="/some-route", i.e. a link to some route in your application.
It will look something like this:

<a [routerLink]="..." [queryParams]="{category: item}" ... > ... </a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question