mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jessica Janiuk
parent
c57ba8c6e6
commit
bdb6ae9dbc
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user