michaelbromley / michaelbromley/angularUtils

breadcrumb complete hook?

Open
#412 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
842
PR merge metrics
No merged PRs in 30d

Description

Is there anything on the scope/rootscope that I can watch for when the breadcrumb has completed rendering? I have a case where I need to remove the links in favor of plain-text if in a certain view mode. I've been able to alter the breadcrumb contents via jquery called in the constructor of the controller like so...

```JavaScript
private disableBCT(): void {
$('.breadcrumb li').each(function (index, element) {
if ($(element).children().hasClass('homeBCTLink')) {
$(element).html('');
} else {
$(element).find('.innerBCTLink').hide();
$(element).find('.innerBCTNoLink').show();
}
});
}
```
But something is happening between my show/hide and the final render, so both link & nolink end up showing. Not sure if its this util, or something else.

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start by locating the breadcrumb directive or utility and tracing its rendering lifecycle, then inspect how scope or rootScope events relate to the final DOM update. Done means identifying and documenting a reliable completion hook or confirming that this issue needs a different approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript, jquery
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.