michaelbromley / michaelbromley/angularUtils

Breadcrumbs could not handle multiple paths to access a particular state.

Open
#456 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.