Configuring the Router

Learn how to configure routes, render components, and create Angular applications with routing features.

We understand the usage of the forRoot method. The routes variable that we pass in the forRoot method is a list of Routes objects that specify what routes exist in the application and what components should respond to a specific route. It can look like the following:

Get hands-on with 1200+ tech skills courses.