* Resets the route configuration used for navigation and generating links. * * @param config The route array for the new configuration. * * @usageNotes * * ```ts * router.resetConfig([ * { path: 'team/:id', component: TeamCmp, children: [ * { path: 'simple', component:
(config: Routes)
| 396 | * ``` |
| 397 | */ |
| 398 | resetConfig(config: Routes): void { |
| 399 | (typeof ngDevMode === 'undefined' || ngDevMode) && validateConfig(config); |
| 400 | this.config = config.map(standardizeConfig); |
| 401 | this.navigated = false; |
| 402 | } |
| 403 | |
| 404 | /** @docs-private */ |
| 405 | ngOnDestroy(): void { |