{
  "id": "api/core/StaticProvider",
  "title": "StaticProvider",
  "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/core\", \"name\": \"@angular/core\" } },\n            { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/core/StaticProvider\", \"name\": \"StaticProvider\" } }\n          ]\n        }\n      </script>\n        <a href=\"/api\">API</a> > <a href=\"api/core\">@angular/core</a>\n    </div>\n    <div class=\"github-links\">\n  <a href=\"https://github.com/angular/angular/edit/master/packages/core/src/di/interface/provider.ts?message=docs(core)%3A%20describe%20your%20change...#L248-L259\" 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/core/src/di/interface/provider.ts#L248-L259\" 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=\"staticprovider\">StaticProvider<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/core/StaticProvider#staticprovider\"><i class=\"material-icons\">link</i></a></h1>\n    \n    <label class=\"api-type-label type-alias\">type-alias</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>Describes how an <code><a href=\"api/core/Injector\" class=\"code-anchor\">Injector</a></code> should be configured as static (that is, without reflection).\nA static provider provides tokens to an injector for various types of dependencies.</p>\n\n    \n  </section>\n  \n  \n  \n  <section class=\"type-alias-overview\">\n    <code-example language=\"ts\" hidecopy=\"true\">\n    type <a href=\"api/core/StaticProvider\" class=\"code-anchor\">StaticProvider</a> = <a href=\"api/core/ValueProvider\" class=\"code-anchor\">ValueProvider</a> | <a href=\"api/core/ExistingProvider\" class=\"code-anchor\">ExistingProvider</a> | <a href=\"api/core/StaticClassProvider\" class=\"code-anchor\">StaticClassProvider</a> | <a href=\"api/core/ConstructorProvider\" class=\"code-anchor\">ConstructorProvider</a> | <a href=\"api/core/FactoryProvider\" class=\"code-anchor\">FactoryProvider</a> | any[];\n    </code-example>\n  </section>\n\n  \n<section class=\"see-also\">\n  <h2 id=\"see-also\">See also<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/core/StaticProvider#see-also\"><i class=\"material-icons\">link</i></a></h2>\n  <ul>\n  \n    <li><p><a href=\"/api/core/Injector#create\">Injector.create()</a>.</p>\n</li>\n    <li><p><a href=\"guide/dependency-injection-providers\">\"Dependency Injection Guide\"</a>.</p>\n</li>\n  </ul>\n</section>\n\n\n  \n  \n\n  \n\n\n  </div>\n</article>\n\n<!-- links to this doc:\n - api/core\n - api/core/CompilerOptions\n - api/core/Injector\n - api/core/IterableDiffers\n - api/core/KeyValueDiffers\n - api/core/Provider\n - api/core/createPlatformFactory\n - api/core/platformCore\n - api/platform-browser-dynamic/platformBrowserDynamic\n - api/platform-browser-dynamic/testing/platformBrowserDynamicTesting\n - api/platform-browser/platformBrowser\n - api/platform-browser/testing/platformBrowserTesting\n - api/platform-server/platformDynamicServer\n - api/platform-server/platformServer\n - api/platform-server/renderModule\n - api/platform-server/renderModuleFactory\n - api/platform-server/testing/platformServerTesting\n - api/upgrade/static/downgradeModule\n - guide/upgrade-performance\n-->\n<!-- links from this doc:\n - /api\n - /api/core/Injector#create\n - api/core\n - api/core/ConstructorProvider\n - api/core/ExistingProvider\n - api/core/FactoryProvider\n - api/core/Injector\n - api/core/StaticClassProvider\n - api/core/StaticProvider#see-also\n - api/core/StaticProvider#staticprovider\n - api/core/ValueProvider\n - guide/dependency-injection-providers\n - https://github.com/angular/angular/edit/master/packages/core/src/di/interface/provider.ts?message=docs(core)%3A%20describe%20your%20change...#L248-L259\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/core/src/di/interface/provider.ts#L248-L259\n-->"
}