Closed lginq closed 7 years ago
I found a solution. The thing is you need to specify friendly name for every route. Things I did to make this work:
@lginq how can I do this
getNameForUser(id: string): string {
let name = '';
this.userService.getUserByIdUser(+id)
.then(userRespond => {
name = userRespond.first_name;
return name
})
}
I have a route accounts/123456/overview.
When I try to match specific route with this regex to replace the id parameter with correct name: breadcrumbService.addCallbackForRouteRegex("accounts/\d+/overview", this.getName)
I don't get anything, my callback function isn't called.
Any help?