-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Blazor Custom Elements not rendering RenderFragment content in an angular app #38369
Comments
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
@Macrossium The custom elements package doesn't try to accept
Longer term, assuming the custom elements package is productized in .NET 7, we'd certainly want to do something to meet this need. |
Thank you for your detailed response. I think we are in the situation you describe in your 2nd and 3rd points in that the markup contains 3rd-party SPA framework template logic (Angular) AND blazor template logic (other Blazor custom elements) so I guess this isn't possible at this stage? In regards to your 2nd point does it make a difference that the markup contains Blazor custom elements? Can you please direct me to what you mean by declaring a slot in your input and output? Thank you again Steve, I appreciate you taking the time to answer my question. Kind regards, |
Thanks for contacting us. We're moving this issue to the |
Thanks for contacting us. We're moving this issue to the |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Closing this as a dupe of #45421 |
Describe the bug
When running the sample Blazor Custom Elements if a RenderFragment Parameter is added and set in angular the RenderFragment is not rendered.
This works fine when running in a pure blazor application however we need this support so that we can integrate blazor components into the root of an angular app for things such as setting up Telerik UI support which needs a blazor element inserted at the root of the app to work properly.
Appologies if I missed a previous post already on this and thank you for any help you are able to offer.
To Reproduce
Take a copy of Blazor Custom Elements.
In Counter.razor add
@ChildContent
to the HTML section and[Parameter] public RenderFragment ChildContent { get; set; }
To the code section.
In app.component.ts in the my-blazor-counter instance add an inner div tag with some string content.
Run the blazor and angular application as instructed on the page.
Click the 'add blazor counter' button
Observe that the string content is not rendered as expected in the my-blazor-counter blazor control.
Exceptions (if any)
Further technical details
dotnet --info
:dotnet --info Output
The text was updated successfully, but these errors were encountered: