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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *