In Angular, what is the purpose of NgModule?
- Defining routing configurations
- Handling HTTP requests
- Managing components
- Organizing and consolidating modules
NgModule in Angular is used to organize and consolidate related modules, components, directives, pipes, and services. It also defines metadata such as routing and providers for dependency injection.
Loading...
Related Quiz
- How does a semaphore differ from a mutex in terms of signaling and resource access?
- What is the purpose of a file system in an operating system?
- What is the correct syntax for declaring a variable in JavaScript?
- You're troubleshooting a network connectivity issue between two hosts. Describe the steps you would take to diagnose and resolve the problem using tools and techniques from the TCP/IP protocol suite.
- The ___________ tag is used to define an internal style sheet in HTML.