Visitar URL original
feat(router): new output that would notify when link is activated by anandtiwary · Pull Request #43280 · angular/angular · GitHub
The Wayback Machine - https://web.archive.org/web/20211120121444/https://github.com/angular/angular/pull/43280
Skip to content
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

feat(router): new output that would notify when link is activated #43280

Closed
wants to merge 1 commit into from

Conversation

@anandtiwary
Copy link
Contributor

@anandtiwary anandtiwary commented Aug 28, 2021 •

This commit adds a new output to routerLinkActive directive.
Whenever, the associated link becomes active or inactive, an
event will be fired on this out with the correct status

PR Close #37284

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #37284

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@google-cla google-cla bot added the cla: yes label Aug 28, 2021
@anandtiwary anandtiwary marked this pull request as ready for review Aug 28, 2021
@pullapprove pullapprove bot requested a review from atscott Aug 28, 2021
@ngbot ngbot bot added this to the Backlog milestone Aug 30, 2021
@@ -72,6 +72,16 @@ import {RouterLink, RouterLinkWithHref} from './router_link';
* </div>
* ```
*
* You can use the output `isActiveChange` to get notified each time the link becomes
Copy link
Contributor

@atscott atscott Aug 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this documentation to be on the actual isActiveChange output below. Also, you should mention what true or false indicates. I know it might seem implied already, but it's best to be explicit.

FYI, since I know there have been issues with the commit history in past PRs, you can use fixup commits that will be squashed when merged:

git commit --all --fixup HEAD
git push

https://github.com/angular/angular/blob/master/CONTRIBUTING.md#addressing-review-feedback

Loading

Copy link
Contributor

@jessicajaniuk jessicajaniuk left a comment

LGTM 🍪

reviewed-for: public-api

Loading

@pullapprove pullapprove bot requested a review from jelbourn Aug 31, 2021
@anandtiwary
Copy link
Contributor Author

@anandtiwary anandtiwary commented Aug 31, 2021

Cool, so you still want me to make this documentation change right?

Loading

@atscott
Copy link
Contributor

@atscott atscott commented Aug 31, 2021

Cool, so you still want me to make this documentation change right?

That's right. Please still make the change.

Loading

@atscott atscott force-pushed the active-router-change branch from 97a947e to 31a1118 Aug 31, 2021
@atscott
Copy link
Contributor

@atscott atscott commented Aug 31, 2021

Loading

Copy link
Contributor

@atscott atscott left a comment

reviewed-for: public-api

Loading

@pullapprove pullapprove bot requested a review from petebacondarwin Aug 31, 2021
@anandtiwary
Copy link
Contributor Author

@anandtiwary anandtiwary commented Aug 31, 2021

@atscott why did the test fail now? or is it an internal test?

Loading

This commit adds a new output to `routerLinkActive` directive.
Whenever, the associated link becomes active or inactive, an
event will be fired on this out with the correct status

PR Close angular#37284
@atscott atscott force-pushed the active-router-change branch from 31a1118 to 310aa33 Aug 31, 2021
@atscott
Copy link
Contributor

@atscott atscott commented Aug 31, 2021

@anandtiwary because we moved the documentation to the event, the public API removed the (undocumented) note from it. I fixed it and pushed to your branch

Loading

@anandtiwary
Copy link
Contributor Author

@anandtiwary anandtiwary commented Aug 31, 2021

Thanks!

Loading

Copy link
Member

@petebacondarwin petebacondarwin left a comment

Reviewed-for: public-api

Loading

@anandtiwary
Copy link
Contributor Author

@anandtiwary anandtiwary commented Aug 31, 2021

@atscott Is there an automated process that runs periodically and merges the approved PRs? just trying to understand the process.

Loading

@atscott
Copy link
Contributor

@atscott atscott commented Aug 31, 2021

@anandtiwary There's no automated process. The caretaker periodically goes through the merge queue and merges things by hand. This will likely happen for this PR sometime tomorrow.

Loading

@jessicajaniuk
Copy link
Contributor

@jessicajaniuk jessicajaniuk commented Sep 1, 2021

@anandtiwary This has been merged into master.

Loading

TeriGlover added a commit to TeriGlover/angular that referenced this issue Sep 16, 2021
…gular#43280)

This commit adds a new output to `routerLinkActive` directive.
Whenever, the associated link becomes active or inactive, an
event will be fired on this out with the correct status

PR Close angular#37284

PR Close angular#43280
TeriGlover added a commit to TeriGlover/angular that referenced this issue Sep 22, 2021
…gular#43280)

This commit adds a new output to `routerLinkActive` directive.
Whenever, the associated link becomes active or inactive, an
event will be fired on this out with the correct status

PR Close angular#37284

PR Close angular#43280
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Oct 2, 2021

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Loading

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

4 participants