Skip to content

breadcrumb disappears on multiple refreshes #24

Answered by udayvunnam
SangeetaJ asked this question in Q&A
Discussion options

You must be logged in to vote

@SangeetaJ I think I understood your problem. The breadcrumb which is set dynamically in component is lost and not shown when refreshed.

The problem is where you set the this.breadcrumbService.set('/path', 'label')

  • When you move from one route to another, we store all the dynamically provided labels and show them in Breadcrumb.
  • But when do a refresh, you have to make sure the component where you set the label dynamically is loaded into the view.
  • You can move up the logic this.breadcrumbService.set() to it's nearest parent which is always in the view no matter whichever child is rendered.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@CongLeVN
Comment options

Answer selected by udayvunnam
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #24 on December 09, 2020 03:00.