When setting up routing in Angular, where do you usually define the paths and their associated components?

  • In a separate routing module file.
  • In the app.component.ts file.
  • In the app.module.ts file.
  • In the index.html file.
In Angular, paths and their associated components are typically defined in a separate routing module file. This separation helps organize and manage routing configurations more effectively. While it's possible to define routes in other files, the recommended and conventional approach is to use a dedicated routing module.
Add your answer
Loading...

Leave a comment

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