What is the primary use of in Angular?

  • To define a new component in Angular.
  • To display data from an API.
  • To project content from a parent component into a child component.
  • To style Angular components using CSS.
The primary use of in Angular is to project content from a parent component into a child component. This allows you to pass content or HTML elements from a parent component to a designated location in a child component, facilitating component reusability and flexibility. It's a fundamental concept in Angular for creating dynamic and customizable components.
Add your answer
Loading...

Leave a comment

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