Which module in Angular is primarily used for setting up routing?

  • AppRoutingModule
  • NgModule
  • RouterModule
  • RoutingModule
In Angular, the RouterModule is primarily used for setting up routing. It provides the necessary tools and components to configure routing in an Angular application. While NgModule is a fundamental building block in Angular, it's not specifically designed for routing. AppRoutingModule and RoutingModule are commonly used names for the routing module in many Angular projects.
Add your answer
Loading...

Leave a comment

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