feat(router): expose resolved route title#46826
Closed
EmmanuelRoux wants to merge 1 commit intoangular:mainfrom
Closed
feat(router): expose resolved route title#46826EmmanuelRoux wants to merge 1 commit intoangular:mainfrom
EmmanuelRoux wants to merge 1 commit intoangular:mainfrom
Conversation
93e1afa to
5b71be0
Compare
atscott
requested changes
Jul 13, 2022
EmmanuelRoux
commented
Jul 15, 2022
23f4358 to
4c6fc59
Compare
4c6fc59 to
aa9153e
Compare
atscott
requested changes
Jul 18, 2022
Contributor
atscott
left a comment
There was a problem hiding this comment.
LGTM for the changes. Before we merge, could you please squash the commits into one?
atscott
reviewed
Jul 18, 2022
aa9153e to
5522583
Compare
atscott
approved these changes
Jul 18, 2022
atscott
approved these changes
Jul 18, 2022
Contributor
atscott
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
AndrewKushnir
approved these changes
Jul 18, 2022
Contributor
AndrewKushnir
left a comment
There was a problem hiding this comment.
Reviewed-for: public-api
jessicajaniuk
approved these changes
Jul 18, 2022
Contributor
jessicajaniuk
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
atscott
requested changes
Jul 18, 2022
5522583 to
0b237c0
Compare
atscott
approved these changes
Jul 18, 2022
Expose resolved route title from ActivatedRoute and ActivatedRouteSnapshot
0b237c0 to
0a79dea
Compare
Contributor
|
caretaker note: This will require patching cl/462221001 when syncing. |
Contributor
|
green TGP with patches |
Contributor
|
merge assistance:
|
Member
|
This PR was merged into the repository by commit 10289f1. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #46825
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #46825
What is the new behavior?
Since Angular 14, router has a new mechanism to update page title from route config. The route can either be a static string or resolved in the same way as
resolvedata.But the resolved route title is not exposed and inaccessible from client application (it seems the title is actually stored in the resolved
Data, but using a privateSymbolso it can't be accessed properly).This PR adds a new
titleproperty onActivatedRouteandActivatedRouteSnapshot.Does this PR introduce a breaking change?
Other information