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.
Loading...
Related Quiz
- Which directive in Angular is used to add or remove an element from the DOM based on a condition?
- The method setValidators() and clearValidators() belong to the ______ class in Angular's Reactive Forms.
- Which Angular CLI command helps in updating your Angular application to the latest version?
- How do you set default values for controls in a reactive form?
- What is the primary difference between single-slot and multi-slot content projection?