W3cubDocs

/Angular 2 TypeScript

setupTestingRouter

Stable Function

Class Export

export setupTestingRouter(urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], urlHandlingStrategy?: UrlHandlingStrategy)

Router setup factory function used for testing.

exported from @angular/router/testing/index defined in @angular/router/testing/router_testing_module.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/router/testing/index/setupTestingRouter-function.html