angular-cn/aio/dist/generated/docs/api/service-worker/UnrecoverableStateEvent.json

5 lines
5.8 KiB
JSON

{
"id": "api/service-worker/UnrecoverableStateEvent",
"title": "UnrecoverableStateEvent",
"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/service-worker\", \"name\": \"@angular/service-worker\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/service-worker/UnrecoverableStateEvent\", \"name\": \"UnrecoverableStateEvent\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/service-worker\">@angular/service-worker</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/service-worker/src/low_level.ts?message=docs(service-worker)%3A%20describe%20your%20change...#L39-L56\" 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/service-worker/src/low_level.ts#L39-L56\" 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=\"unrecoverablestateevent\">UnrecoverableStateEvent<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/service-worker/UnrecoverableStateEvent#unrecoverablestateevent\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label interface\">interface</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>An event emitted when the version of the app used by the service worker to serve this client is\nin a broken state that cannot be recovered from and a full page reload is required.</p>\n\n <p><a href=\"api/service-worker/UnrecoverableStateEvent#description\">See more...</a></p>\n </section>\n \n \n <section class=\"interface-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\ninterface <a href=\"api/service-worker/UnrecoverableStateEvent\" class=\"code-anchor\">UnrecoverableStateEvent</a> {\n <a class=\"code-anchor\" href=\"api/service-worker/UnrecoverableStateEvent#type\"><span class=\"member-name\">type</span>: 'UNRECOVERABLE_STATE'</a>\n <a class=\"code-anchor\" href=\"api/service-worker/UnrecoverableStateEvent#reason\"><span class=\"member-name\">reason</span>: string</a>\n}\n</code-example>\n\n \n \n\n\n \n \n\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/service-worker/UnrecoverableStateEvent#see-also\"><i class=\"material-icons\">link</i></a></h2>\n <ul>\n \n <li><a href=\"guide/service-worker-communications\">Service worker communication guide</a>\n</li>\n </ul>\n</section>\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/service-worker/UnrecoverableStateEvent#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>For example, the service worker may not be able to retrieve a required resource, neither from the\ncache nor from the server. This could happen if a new version is deployed to the server and the\nservice worker cache has been partially cleaned by the browser, removing some files of a previous\napp version but not all.</p>\n\n \n</section>\n\n \n<section class=\"instance-properties\">\n <h2 id=\"properties\">Properties<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/service-worker/UnrecoverableStateEvent#properties\"><i class=\"material-icons\">link</i></a></h2>\n <table class=\"is-full-width list-table property-table\">\n <thead>\n <tr>\n <th>Property</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"type\"></a>\n <code class=\"\"><span class=\"member-name\">type</span>: 'UNRECOVERABLE_STATE'</code>\n </td>\n <td>\n \n \n \n </td>\n </tr>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"reason\"></a>\n <code class=\"\"><span class=\"member-name\">reason</span>: string</code>\n </td>\n <td>\n \n \n \n </td>\n </tr>\n \n </tbody>\n </table>\n</section>\n \n\n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/service-worker\n - api/service-worker/SwUpdate\n - guide/service-worker-communications\n-->\n<!-- links from this doc:\n - /api\n - api/service-worker\n - api/service-worker/UnrecoverableStateEvent#description\n - api/service-worker/UnrecoverableStateEvent#properties\n - api/service-worker/UnrecoverableStateEvent#reason\n - api/service-worker/UnrecoverableStateEvent#see-also\n - api/service-worker/UnrecoverableStateEvent#type\n - api/service-worker/UnrecoverableStateEvent#unrecoverablestateevent\n - guide/service-worker-communications\n - https://github.com/angular/angular/edit/master/packages/service-worker/src/low_level.ts?message=docs(service-worker)%3A%20describe%20your%20change...#L39-L56\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/service-worker/src/low_level.ts#L39-L56\n-->"
}