I'm trying to create an application with angular 2,And Want pass params to tag a in [routerLink],i want craete a link like this :
<a href="/auth/signup?cell=1654654654"></a>
i dont know how to pass cell
in template...
You can work with queryParams
which works with routerLink
to build the url
. For ex:
<a [routerLink]="['/profiles']"
[queryParams]="{min:45,max:50,location:29293}">
Search
</a>
This will build a route like http://localhost:3000/profiles?min=45&max=50&location=29923
Good Luck.