Summary
What I have so far
I can display the list of products fine, and I can also display a page once clicking on a product and the URL changes to "url.com/products/10". So that's working fine with the below.
<a [routerLink] = "['/product', product.productID]">
{{ product.productName }}
</a>
Question Is it possible to use router links to achieve the following?
"url.com/products/10/issues/24"
Any help would be greatly appreciated. Thank you.
Yes you can do that in the following way:
For list of issues: [routerLink] = "['/product', product.productID, 'issues']"
.
This will generate a link to /product/10/issues/
For a particular issue: [routerLink] = "['/product', product.productID, 'issues', issueID]"
.
This will generate a link to /product/10/issues/24
You can get more details over here.