5 lines
32 KiB
JSON
5 lines
32 KiB
JSON
|
{
|
||
|
"id": "api/router/testing/RouterTestingModule",
|
||
|
"title": "RouterTestingModule",
|
||
|
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/router\", \"name\": \"@angular/router\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/router/testing\", \"name\": \"@angular/router/testing\" } },\n { \"@type\": \"ListItem\", \"position\": 4, \"item\": { \"@id\": \"https://angular.io/api/router/testing/RouterTestingModule\", \"name\": \"RouterTestingModule\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/router\">@angular/router</a> > <a href=\"api/router/testing\">@angular/router/testing</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/router/testing/src/router_testing_module.ts?message=docs(router)%3A%20describe%20your%20change...#L136-L190\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/router/testing/src/router_testing_module.ts#L136-L190\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"routertestingmodule\">RouterTestingModule<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/testing/RouterTestingModule#routertestingmodule\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label ngmodule\">ngmodule</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p>Sets up the router to be used for testing.</p>\n\n <p><a href=\"api/router/testing/RouterTestingModule#description\">See more...</a></p>\n </section>\n \n \n \n <section class=\"ngmodule-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass <a href=\"api/router/testing/RouterTestingModule\" class=\"code-anchor\">RouterTestingModule</a> {\n <a class=\"code-anchor\" href=\"api/router/testing/RouterTestingModule#withRoutes\">static <span class=\"member-name\">withRoutes</span>(routes: Routes, config?: ExtraOptions): ModuleWithProviders<RouterTestingModule></a>\n}\n</code-example>\n\n \n \n\n</section>\n\n\n \n\n \n \n \n<section class=\"description\">\n <h2 id=\"description\">Description<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/testing/RouterTestingModule#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>The modules sets up the router to be used for testing.\nIt provides spy implementations of <code><a href=\"api/common/Location\" class=\"code-anchor\">Location</a></code>, <code><a href=\"api/common/LocationStrategy\" class=\"code-anchor\">LocationStrategy</a></code>, and <a href=\"api/core/NgModuleFactoryLoader\"><code>NgModuleFactoryLoader</code></a>.</p>\n\n <p>Further information available in the <a href=\"api/router/testing/RouterTestingModule#usage-notes\">Usage Notes</a>...</p>\n</section>\n\n \n\n \n\n<section class=\"static-methods\">\n <h2 id=\"static-methods\">Static methods<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/testing/RouterTestingModule#static-methods\"><i class=\"material-icons\">link</i></a></h2>\n \n <a id=\"withRoutes\"></a>\n<table class=\"is-full-width method-table static-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\
|
||
|
}
|