* 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)
| 386 | * ``` |
| 387 | */ |
| 388 | resetConfig(config: Routes): void { |
| 389 | (typeof ngDevMode === 'undefined' || ngDevMode) && validateConfig(config); |
| 390 | this.config = config.map(standardizeConfig); |
| 391 | this.navigated = false; |
| 392 | } |
| 393 | |
| 394 | /** @docs-private */ |
| 395 | ngOnDestroy(): void { |