-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Closed
Milestone
Description
Describe the problem that you experienced
Example:
This is an example from the Angular.dev docs demonstrating Multiple content placeholders
<!-- Component template -->
<div class="card-shadow">
<ng-content select="card-title"></ng-content>
<div class="card-divider"></div>
<ng-content select="card-body"></ng-content>
</div>
<!-- Using the component -->
<custom-card>
<card-title>Hello</card-title>
<card-body>Welcome to the example</card-body>
</custom-card>
Error:
'card-title' is not a known element:
- If 'card-title' is an Angular component, then verify that it is included in the '@Component.imports' of this component.
- If 'card-title' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.ngtsc(-998001).
'card-body' is not a known element:
- If 'card-body' is an Angular component, then verify that it is included in the '@Component.imports' of this component.
- If 'card-body' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.ngtsc(-998001).
Missing Example:
There is no example about Conditional Content Projection.
Enter the URL of the topic with the problem
https://angular.dev/guide/components/content-projection#multiple-content-placeholders
Describe what you were looking for in the documentation
I'm looking for information about multiple content placeholders in components and conditional content projection in Angular.dev new documentation.
Describe the actions that led you to experience the problem
No response
Describe what you want to experience that would fix the problem
No response
Add a screenshot if that helps illustrate the problem
No response
If this problem caused an exception or error, please paste it here
No response
If the problem is browser-specific, please specify the device, OS, browser, and version
No response
Provide any additional information here in as much as detail as you can
No response
Metadata
Metadata
Assignees
Labels
No labels