You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Docs it shows us how to do the content projection for multiple elements but it won't render and give us an error because the schemaCUSTOM_ELEMENTS_SCHEMA needs to be added to the @component. It is sadly however not mentioned in the Docs on that page. While it can be found in the Docs would be nice if it is specifically stated on the content projection page especially if the examples require the schema.
Describe what you were looking for in the documentation
I was looking for content projection with ng-content for multiple contents but it didn't render with the examples due to the missing schema and it is not mentioned on that page.
Describe the actions that led you to experience the problem
Followed the Docs.
Describe what you want to experience that would fix the problem
To mention the schema on that page.
Error message
The text was updated successfully, but these errors were encountered:
syzgod
changed the title
Using custom HTML elements with dash selectors needs a Schema
Content projection for multiple contents using custom HTML elements needs a schema
May 8, 2025
Describe the problem that you experienced
In the Docs it shows us how to do the content projection for multiple elements but it won't render and give us an error because the schema CUSTOM_ELEMENTS_SCHEMA needs to be added to the @component. It is sadly however not mentioned in the Docs on that page. While it can be found in the Docs would be nice if it is specifically stated on the content projection page especially if the examples require the schema.
Enter the URL of the topic with the problem
https://angular.dev/guide/components/content-projection
Describe what you were looking for in the documentation
I was looking for content projection with ng-content for multiple contents but it didn't render with the examples due to the missing schema and it is not mentioned on that page.
Describe the actions that led you to experience the problem
Followed the Docs.
Describe what you want to experience that would fix the problem
To mention the schema on that page.
Error message
The text was updated successfully, but these errors were encountered: