Which Angular feature allows you to project different parts of content into multiple predefined slots inside a child component?

  • ng-content
  • ng-projection
  • ng-slot
  • ng-template
In Angular, the feature that allows you to project different parts of content into multiple predefined slots inside a child component is the directive. It enables you to define multiple tags with select attributes in the child component's template, and then, in the parent component, specify which content goes into each slot using the select attribute's value. The other options are not valid Angular directives or features for content projection.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *