refactor(router): remove deprecated provideRoutes function.

`provideRoutes` was deprecated in v15.

BREAKING CHANGE: `provideRoutes()` has been removed. Use `provideRouter()` or `ROUTES` as multi token if necessary.
This commit is contained in:
Matthieu Riegler
2026-02-24 09:33:46 +01:00
committed by Jessica Janiuk
parent c57ba8c6e6
commit bdb6ae9dbc
10 changed files with 28 additions and 162 deletions
@@ -25,7 +25,6 @@ The schematic will attempt to find all the places where the application routes a
- `RouterModule.forRoot` and `RouterModule.forChild`
- `Router.resetConfig`
- `provideRouter`
- `provideRoutes`
- variables of type `Routes` or `Route[]` (e.g. `const routes: Routes = [{...}]`)
The migration will check all the components in the routes, check if they are standalone and eagerly loaded, and if so, it will convert them to lazy loaded routes.