HTML:
<button [routerLink]="['/Request']">Request</button>
In this component, I am receiving data such as product.name and product.id.
/Request is a separate view that I want to redirect the user to when the button is clicked (currently utilizing [routerLink]). I also need to pass the value of product.id to the new view in order to use it there.
Data:
The data is organized in a list format, with each button click triggering a different ID.
I'm struggling to figure out how to properly pass the value to the new view upon clicking the button. What would be the most effective approach?