-
-
Notifications
You must be signed in to change notification settings - Fork 59
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breadcrumbs are not displayed for lazy loaded module #149
Comments
Hello 馃憢 @luizagabriela |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
馃悶 Bug report
Description
I'm trying to display the breadcrumb for a lazy loaded module but there is an error in the breadcrumb.service file on line 274 related to the _loadedConfig. The _loadedConfig property is undefined.
I'm using the changes from this Pull request , because I have to use the new feature of displaying the breadcrumb using a resolver.
This is the piece of code from the breadcrumb service where the _loadedConfig is undefined. ( baseChild = routeConfig._loadedConfig.routes.find(); )
Angular Version: "14.2"
Angular Router Version: "14.2"
I found a fix for this bug. There is another property of routeConfig that is of Router type and is called _loadedRoutes. This object contains the component and path of the route and can be used instead of _loadedConfig property.
This change is needed to display the breadcrumbs in the lazy loaded modules.
What do you think? Can these changes be made as part of the pull request related to the routeSnapshot data available in breadcrumb function?
Thanks!
The text was updated successfully, but these errors were encountered: