-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page Refresh the Breadcrumb disappears #18
Comments
Hey @sagar1987, can you let me know which version of xng-breadcrumb you are using. If you are using old version suggest you to update to latest one. The issue was fixed long ago in #1 |
@udayvunnam Hi Uday thanks for the reply , I am using version "xng-breadcrumb": "^2.1.0" , Please let me know how can i resolve this issue . Thanks in advance |
Hey @sagar1987, can you please provide your sample route and breadcrumb configuration. As I see with [email protected] and Angular 7, page refresh doesn't hide/disappear breadcrumb. If you need a reference for demo app please follow the steps
Now the demo app opens and showcases the library usage. You can move to any route(even deep routes like http://localhost:4200/mentee/1/edit) and refresh. The breadcrumb still shows. Please let me know if I am missing something or your breadcrumb configuration is different than usual. |
@udayvunnamThis is my part of route {
|
@sagar1987 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
You can move up the logic |
@udayvunnam Perfect answer , Yes i just injected the breadcrumbService into the constructor of AppComponent and the breadcrumbs value gets retained even on page refresh , So then the AppComponent always get loaded into the view when the page is reloaded/refreshed , Thanks a lot @udayvunnam for you valuable suggestions 💯 🥇 |
To persist breadcrumb on refresh, Add below code to your parent component, mostly
|
I had the same issue and solved it using @vishnu-dev's solution |
I had the same issue but was not resolved by @vishnu-dev 's solution, why?! |
Hey Guys when i Used @vishnu-dev 's Solution it shows **Failed to compile. ./node_modules/xng-breadcrumb/fesm2015/xng-breadcrumb.mjs 322:145-162 Can someone please help i am facing issue when page refreshes breadcrumbs Disappears |
@Daniyal1123 this is please check the documentation https://udayvunnam.github.io/xng-breadcrumb/#/quickstart |
@Adel-El-Sherif @Daniyal1123 can you please provide a reproducible example where you see this issue. |
@udayvunnam same happening in Xng ERROR in ./node_modules/xng-breadcrumb/fesm2015/xng-breadcrumb.mjs 322:145-162 |
Hii @udayvunnam i am facing an issue, |
Hi @udayvunnam If we are refreshing the page , the child route dynamic breadcrumb does not load at all. It works for parent routing. can you explain how it is working or share any demo related to that? In your repo, I don't see alias based breadcrumb label used in nested routes. Appreciate if you share any. |
@udayvunnam Hi I am facing issues when i refresh the browser page , the breadcrumb disappears any fix for this issue , Please let me know thanks
The text was updated successfully, but these errors were encountered: