Currently building an online shop in angular. Structure is as follows
Store page - Category - Product
.state('shop', {
url: '/shop'
.state('shop.category', {
url: '/:slug'
.state('shop.category.product', {
url: '/:slug'
I then use <a ui-sref=".category({slug: cat.slug})">{{ foo }}</a> to link from the shop page to the category page. this works fine. However how do I link from the category page to a product?
As you can imagine I want to keep the URL to look like this
www.site.c@m/shop/dynamic-category/dynamic-product