gmostert / ng2-breadcrumb

This is an angular 2 component that creates a breadcrumb trail. It hooks into the angular2/router, to dynamically build up the crumb trail once a component is routed to.
MIT License
102 stars 81 forks source link

get only one param from route #98

Open kyabroudi opened 6 years ago

kyabroudi commented 6 years ago

Hello, I have route navigation with two params ''products/:name/:itemName'' how can I get breadcrumb to this route like this product/name I've tried with Regex but I am getting duplicated Products / productName/ productName breadcrumbService.addFriendlyNameForRouteRegex('/products/.*', "productName");