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.
I have a route like: /profile/424021007778888 and a setup like this
this.breadcrumb.addFriendlyNameForRoute("/profile", "Profile");
this.breadcrumb.addCallbackForRouteRegex(new RegExp("\/profile\/\d+$").toString(), s => this.profile.name[0].value);
Which correctly displays "Profile", but the last part of the URL (the number) is not converted to my profile name? According to https://regex101.com/r/UOYPE6/1 this should work? :-)
Hi and thanks for this piece of software!
I have a route like:
/profile/424021007778888
and a setup like thisWhich correctly displays "Profile", but the last part of the URL (the number) is not converted to my profile name? According to https://regex101.com/r/UOYPE6/1 this should work? :-)
What am I missing here?