Accessing route params in Angular
There are various scenarios in which you may need to read parameters from your route. These parameters can be query parameters (e.g.: test?username=…) or route parameters (e.g.: test/:testId). Additionally, you can pass any desired value via the data property inside the Route object in Angular routing as shown below: export const appRoutes: Route[] = [ { …