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
Breadcrumbs with multiple parameters not working #70
I'm trying to generate breadcrumbs for 'Dashboard/Store/:id/:type/:source/:sourceDate' when I use addCallbackForRoute function it is unable to to distinguish the path param values and actual route path. for the above example i was able to generate Dashboard/Store/123/typevalue/sourcevalue/01 mar 2013.
I tried addCallbackForRouteRegex it resulted in following Dashboard/Store/custom message for id/custom message for type/ custom message for type/message for date
ideally expected should be : 'Dashboard/Store-Custom message reading path param'
how do I achieve this?
thanks in advance
I'm trying to generate breadcrumbs for 'Dashboard/Store/:id/:type/:source/:sourceDate' when I use addCallbackForRoute function it is unable to to distinguish the path param values and actual route path. for the above example i was able to generate Dashboard/Store/123/typevalue/sourcevalue/01 mar 2013. I tried addCallbackForRouteRegex it resulted in following Dashboard/Store/custom message for id/custom message for type/ custom message for type/message for date
ideally expected should be : 'Dashboard/Store-Custom message reading path param' how do I achieve this? thanks in advance