-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Examples on how to affect the Layout rendering from Body component #11682
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
Comments
Might be a dup or related to #11243. |
I'll be working on #11243 tomorrow (Wednesday, 4/3). @RichiCoder1, I'm going to move this to a comment on that issue as a reminder to test the |
We discussed this: We have coverage enhancements to make for this scenario: A useful approach is using a service (DI) to communicate across the component-layer barrier. We'll document that approach. |
@RichiCoder1 Engineering is going to address it formally. dotnet/aspnetcore#10131 |
Sounds good! The referenced issue is basically exactly what I was looking for. |
@RichiCoder1 Yes, was happy to hear from DR that they're working on a framework scenario for it. At least in the short-term until they get there (this preview) , the approach offered by @sven5 is pretty sweet. That should at least tide everyone over. We'll get the bits that they build into the docs ASAP after release. |
It's not clear if it's possible to pass data from the wrapped component to the Layout ala https://docs.microsoft.com/en-us/aspnet/web-pages/overview/ui-layouts-and-themes/3-creating-a-consistent-look#passing-data-to-layout-pages, and if so how. Clarification would be great
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: