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)
Parameters
urlSerializer | Type: |
contexts | Type: |
location | Type: |
loader | Type: |
compiler | Type: |
injector | Type: |
routes | Type: |
opts | Type: Optional. Default is |
urlHandlingStrategy | Type: Optional. Default is |
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/router/testing/setupTestingRouter