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): merge RouterLinkWithHref into RouterLink #47630

Closed

Conversation

AndrewKushnir
Copy link
Contributor

This commit updates the RouterLink to extend the selector to also include <a> and <area> elements, which were previously matched by the RouterLinkWithHref directive. The code of the directives was merged together (since there was a lot of duplication) and this commit finalizes the merge. The RouterLinkWithHref becomes an alias of the RouterLink directive.

Now there is no need to import and use the RouterLinkWithHref class, the RouterLink directive will match any element that has the routerLink attribute.

PR Type

What kind of change does this PR introduce?

  • Feature

Does this PR introduce a breaking change?

  • Yes
  • No

@AndrewKushnir AndrewKushnir added feature Issue that requests a new feature state: WIP area: router target: major This PR is targeted for the next major release labels Oct 4, 2022
@ngbot ngbot bot modified the milestone: Backlog Oct 4, 2022
This commit updates the `RouterLink` to extend the selector to also include `<a>` and `<area>` elements, which were previously matched by the `RouterLinkWithHref` directive. The code of the directives was merged together (since there was a lot of duplication) and this commit finalizes the merge. The `RouterLinkWithHref` becomes an alias of the `RouterLink` directive.

Now there is no need to import and use the `RouterLinkWithHref` class, the `RouterLink` directive will match any element that has the `routerLink` attribute.

DEPRECATED:

The `RouterLinkWithHref` directive is deprecated, use the `RouterLink` directive instead. The `RouterLink` contains the code from the `RouterLinkWithHref` to handle elements with `href` attributes.
@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer action: global presubmit The PR is in need of a google3 global presubmit and removed state: WIP labels Oct 5, 2022
@AndrewKushnir AndrewKushnir marked this pull request as ready for review October 5, 2022 15:42
@@ -33,7 +33,7 @@
"cli-hello-world-lazy": {
"uncompressed": {
"runtime": 2835,
"main": 226404,
"main": 225113,
Copy link
Contributor

Choose a reason for hiding this comment

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

🥳

Copy link
Contributor

@atscott atscott left a comment

Choose a reason for hiding this comment

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

reviewed-for: public-api, size-tracking

Copy link
Contributor

@jessicajaniuk jessicajaniuk left a comment

Choose a reason for hiding this comment

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

reviewed-for: public-api, size-tracking

@jessicajaniuk jessicajaniuk added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 5, 2022
@AndrewKushnir
Copy link
Contributor Author

Note to self: this is blocked by the internal cleanup.

@AndrewKushnir AndrewKushnir removed the action: global presubmit The PR is in need of a google3 global presubmit label Oct 5, 2022
@AndrewKushnir
Copy link
Contributor Author

Merge-assistance: internal cleanup is completed, this PR is ready for merge. Please merge and sync on its own (to simplify a rollback if needed).

@AndrewKushnir AndrewKushnir added the risky Identifies a PR that has a level of risk to merging label Oct 5, 2022
@jessicajaniuk
Copy link
Contributor

This PR was merged into the repository by commit f73ef21.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: router feature Issue that requests a new feature risky Identifies a PR that has a level of risk to merging target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants