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

Query Parameters Handling #68

Open kyue1005 opened 7 years ago

kyue1005 commented 7 years ago

Is there a way to handle query parameter? Or I really need add FriendlyName for all route to prevent display the query parameter on breadcrumb??

Path: /product/list?foo=bar

Breadcrumb display: Product / list?foo=bar

beaverusiv commented 7 years ago

This is what I do: breadcrumbService.addFriendlyNameForRouteRegex('\\/scheduler(\\?.*)?$', 'Scheduler');