I want to pass a value with url using routerLink. And read that value on another page. Like I have product list. On select of first record the id of that record pass to product
you can use this in .html
.html
[routerLink]="['/trips/display/' + item.trip, {'paramKey': 'application'}]"
and in .ts you can use this to recover the params
.ts
this.id = this.route.snapshot.params['id']; const param = this.route.snapshot.params['paramKey'];