Help Angular by taking a 1 minute survey!Go to surveyHome

setupTestingRouter

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 UrlSerializer
contexts ChildrenOutletContexts
location Location
loader NgModuleFactoryLoader
compiler Compiler
injector Injector
routes Route[][]
opts ExtraOptions | UrlHandlingStrategy

Optional. Default is undefined.

urlHandlingStrategy UrlHandlingStrategy

Optional. Default is undefined.