Repository navigation
refactor(router): remove support for loadChildren string syntax
#43591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6320c00
fb1d1c7
1a9c0e4
2d16f74
eafaa78
04fb369
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,10 +10,9 @@ import { ExtraOptions } from '@angular/router'; | |
| import { Injector } from '@angular/core'; | ||
| import { Location as Location_2 } from '@angular/common'; | ||
| import { ModuleWithProviders } from '@angular/core'; | ||
| import { NgModuleFactory } from '@angular/core'; | ||
| import { NgModuleFactoryLoader } from '@angular/core'; | ||
| import { Route } from '@angular/router'; | ||
| import { Router } from '@angular/router'; | ||
| import { RouteReuseStrategy } from '@angular/router'; | ||
| import { Routes } from '@angular/router'; | ||
| import { UrlHandlingStrategy } from '@angular/router'; | ||
| import { UrlSerializer } from '@angular/router'; | ||
|
|
@@ -25,25 +24,7 @@ export class RouterTestingModule { | |
| } | ||
|
|
||
| // @public | ||
| export function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location_2, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], opts?: ExtraOptions, urlHandlingStrategy?: UrlHandlingStrategy): Router; | ||
|
|
||
| // @public @deprecated | ||
| export function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location_2, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], urlHandlingStrategy?: UrlHandlingStrategy): Router; | ||
|
|
||
| // @public | ||
| export class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader { | ||
| constructor(compiler: Compiler); | ||
| // (undocumented) | ||
| load(path: string): Promise<NgModuleFactory<any>>; | ||
| set stubbedModules(modules: { | ||
| [path: string]: any; | ||
| }); | ||
| // (undocumented) | ||
| get stubbedModules(): { | ||
| [path: string]: any; | ||
| }; | ||
| } | ||
|
|
||
| export function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location_2, compiler: Compiler, injector: Injector, routes: Route[][], opts?: ExtraOptions | UrlHandlingStrategy, urlHandlingStrategy?: UrlHandlingStrategy, routeReuseStrategy?: RouteReuseStrategy): Router; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is technically a breaking change (and mentioned in the commit message) to a signature that was not marked as deprecated, but I don't see a different way of achieving this. Since this is test-only code it is unlikely to be called from a library, so I'd consider this an acceptable break. @atscott This particular change is not accounted for in the fixup commit that removes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Ah, I see what you did. I don't think this should be an issue. |
||
|
|
||
| // (No @packageDocumentation comment for this package) | ||
|
|
||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,5 @@ | |
| "src/module", | ||
| "src/bootstrap", | ||
| "test/all_spec", | ||
| "test/test_ngtools_api" | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,5 @@ | |
| "src/module", | ||
| "src/bootstrap", | ||
| "test/all_spec", | ||
| "test/test_ngtools_api" | ||
| ] | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.