In Angular, to define routes for an application, you typically create an array of ________ objects.

  • Component
  • Module
  • Route
  • RouterModule
In Angular, to define routes for an application, you typically create an array of Route objects. These objects define the mapping between routes and components, specifying which component should be displayed when a particular route is navigated to. The RouterModule is indeed used to set up the routing configuration in an Angular application, but it's not an array. Components and modules are essential parts of Angular, but they are not used directly to define routes.
Add your answer
Loading...

Leave a comment

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