To create a custom directive that modifies the structure of the DOM, you would use a _____ directive.
- attribute
- component
- service
- structural
To modify the structure of the DOM, you would use a structural directive in Angular, such as ngFor or ngIf.
Loading...
Related Quiz
- In Angular, the _____ method is used to assert that a certain expectation is met in tests.
- What is the purpose of Angular's built-in debugger statement?
- What is the purpose of the --prod flag when building an Angular application using the Angular CLI?
- You are building an e-commerce application and want to ensure that product details are fully loaded before navigating to the product detail page. Which feature of Angular's router would you use to achieve this?
- What would you use to ensure that a route is only accessible to authenticated users?