function
deprecated
Router setup factory function used for testing.
Deprecated: Use provideRouter
or RouterModule
instead.
setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, compiler: Compiler, injector: Injector, routes: Route[][], opts?: ExtraOptions | UrlHandlingStrategy, urlHandlingStrategy?: UrlHandlingStrategy, routeReuseStrategy?: RouteReuseStrategy, titleStrategy?: TitleStrategy)
Deprecated Use provideRouter
or RouterModule
instead.
urlSerializer | UrlSerializer | |
contexts | ChildrenOutletContexts | |
location | Location | |
compiler | Compiler | |
injector | Injector | |
routes | Route[][] | |
opts | ExtraOptions | UrlHandlingStrategy | Optional. Default is |
urlHandlingStrategy | UrlHandlingStrategy | Optional. Default is |
routeReuseStrategy | RouteReuseStrategy | Optional. Default is |
titleStrategy | TitleStrategy | Optional. Default is |
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/router/testing/setupTestingRouter