HTML:
<button [routerLink]="['/Request']">Request</button>
I am getting data in this component as product.name, product.id etc.
/Request is another view and I need to redirect user to that view on button click (Right now I am achieving this via [routerLink]) and to pass the value product.id to that view, as I want to use the value on that view.
Data:
My data is in the form of list, where on each button click, there would be different ID.
I am unable to pass the value to another view, on button click. What's the best approach?