On this page
setupTestingRouter
function
Router setup factory function used for testing.
setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], opts?: ExtraOptions | UrlHandlingStrategy, urlHandlingStrategy?: UrlHandlingStrategy, routeReuseStrategy?: RouteReuseStrategy)
Parameters
urlSerializer |
UrlSerializer |
|
contexts |
ChildrenOutletContexts |
|
location |
Location |
|
loader |
NgModuleFactoryLoader |
|
compiler |
Compiler |
|
injector |
Injector |
|
routes |
Route[][] |
|
opts |
ExtraOptions | UrlHandlingStrategy |
Optional. Default is |
urlHandlingStrategy |
UrlHandlingStrategy |
Optional. Default is |
routeReuseStrategy |
RouteReuseStrategy |
Optional. Default is |
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/api/router/testing/setupTestingRouter