-
Notifications
You must be signed in to change notification settings - Fork 26.3k
feat(router): Add routerOutletData
input to RouterOutlet
directive
#57051
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
Conversation
There was a problem hiding this 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, fw-router
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: fw-testing, public-api
This commit adds an input to `RouterOutlet` that allows developers to pass data from a parent component to the outlet components. Setting the `routerOutletData` input on `RouterOutlet` makes the value available to the child component injectors via the `ROUTER_OUTLET_DATA` token. This token uses a `Signal` type to allow updating the input value and propogating it to the token rather than needing to make the value static. resolves angular#46283
This PR was merged into the repository by commit f271021. The changes were merged into the following branches: main |
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 commit adds an input to
RouterOutlet
that allows developers to pass data from a parent component to the outlet components. Setting therouterOutletData
input onRouterOutlet
makes the value available to the child component injectors via theROUTER_OUTLET_DATA
token. This token uses aSignal
type to allow updating the input value and propagating it to the token rather than needing to make the value static.resolves #46283