michaelbromley / michaelbromley/angularUtils
Breadcrumbs could not handle multiple paths to access a particular state.
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 842
- PR merge metrics
- No merged PRs in 30d
Description
**Description of issue**: If we have a state **loggedIn.view1.service1** which could also be accessed by a path **loggedIn->view2->service1**, then the breadcrumbs would only be based on **loggedIn->view1->service1**.
Although we can access service1 from view1, but we need to register a state for **loggedIn.view2.service1**. Since ngbreadcrumb.js is using _currentState.parent_ so it always look for a parent instead of previous state.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading ngbreadcrumb.js, especially how it uses currentState.parent when constructing breadcrumbs. Reproduce the loggedIn.view1.service1 and loggedIn.view2.service1 navigation paths, then verify that the breadcrumb trail reflects the path actually used to reach service1 rather than only the registered parent hierarchy.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100