Angular's _____ directive is used to repeat a portion of the DOM tree for each item in a list.
- *ngFor
- *ngIf
- *ngInclude
- *ngSwitch
Angular's *ngFor directive is used to repeat a portion of the DOM tree for each item in a list. It's commonly used for rendering lists of items, iterating over arrays, and displaying dynamic content based on data.
Loading...
Related Quiz
- If you want to serve your Angular application on a specific port other than the default (4200), which command should you use?
- To ensure a single instance of a service is available throughout the app, set the providedIn property to ________.
- What is the primary use of ComponentFactoryResolver in Angular?
- In large applications, frequent change detection cycles can lead to performance issues, especially if the application does not use the ________ change detection strategy.
- How does Angular ensure that a module is only loaded once regardless of how many times it is lazily loaded?