{
  "id": "api/platform-server/init",
  "title": "@angular/platform-server/init",
  "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/platform-server\", \"name\": \"@angular/platform-server\" } },\n            { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/platform-server/init\", \"name\": \"@angular/platform-server/init\" } }\n          ]\n        }\n      </script>\n        <a href=\"/api\">API</a> > <a href=\"api/platform-server\">@angular/platform-server</a>\n    </div>\n    <div class=\"github-links\">\n  <a href=\"https://github.com/angular/angular/edit/master/packages/platform-server/init/PACKAGE.md?message=docs(...)%3A%20describe%20your%20change...\" 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/platform-server/init/PACKAGE.md\" 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=\"angularplatform-serverinit\">@angular/platform-server/init<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/platform-server/init#angularplatform-serverinit\"><i class=\"material-icons\">link</i></a></h1>\n  <label class=\"api-type-label NaN\">entry-point</label>\n  \n  \n  \n</header>\n\n  <aio-toc class=\"embedded\"></aio-toc>\n\n  <div class=\"api-body\">\n    <p>Initializes the server environment for rendering an Angular application.</p>\n\n  <p>For example, it provides shims (such as DOM globals) for the server environment.</p>\n<p>The initialization happens as a <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#import_a_module_for_its_side_effects_only\">side effect of importing</a> the entry point (i.e. there are no specific exports):</p>\n<code-example language=\"ts\">\nimport '@angular/platform-server/init';\n</code-example>\n<div class=\"alert is-important\">\n<p>  The import must come before any imports (direct or transitive) that rely on DOM built-ins being available.</p>\n</div>\n\n\n  \n\n\n  \n\n  <h2 id=\"entry-point-exports\">Entry point exports<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/platform-server/init#entry-point-exports\"><i class=\"material-icons\">link</i></a></h2>\n  \n    <p><i>No public exports.</i></p>\n  \n  \n  \n  \n  \n\n  \n  \n  \n\n  \n  \n  \n\n  \n  \n  \n\n  \n  \n  \n\n  \n  \n  \n\n  \n  \n  \n\n  \n  \n  \n\n  </div>\n</article>\n\n<!-- links to this doc:\n - api/platform-server\n-->\n<!-- links from this doc:\n - /api\n - api/platform-server\n - api/platform-server/init#angularplatform-serverinit\n - api/platform-server/init#entry-point-exports\n - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#import_a_module_for_its_side_effects_only\n - https://github.com/angular/angular/edit/master/packages/platform-server/init/PACKAGE.md?message=docs(...)%3A%20describe%20your%20change...\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/platform-server/init/PACKAGE.md\n-->"
}