How do you define a feature module in Angular?
- By using @NgModule
- By using FormsModule
- By using NgClass
- By using NgModel
To define a feature module in Angular, you use the @NgModule decorator to configure and encapsulate the components, services, and other functionality that are related to a specific feature or functionality in your application.
Loading...
Related Quiz
- How can you preload some, but not all, of the lazily-loaded modules in an Angular application?
- Imagine you have a directive that applies accessibility enhancements to elements. How would you test that the directive is correctly applying the necessary ARIA roles and attributes?
- When handling errors in an Observable stream, which operator allows you to provide a fallback Observable?
- How can you handle side effects in state management when using NgRx?
- In an Angular reactive form, how can you dynamically add a validator to a form control at runtime?