79454270

Date: 2025-02-20 11:13:13
Score: 1
Natty:
Report link

In the provider of app.config.ts add provideRouter() and you can pass your routes in that

routes.ts

export routes: Route[] = [...]

app.config.ts import the routes than

export const appConfig: ApplicationConfig = {
  providers: [
    provideRouter(routes)
  ]
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Foysol