angular-cn/aio/dist/generated/docs/guide/deprecations.json

5 lines
49 KiB
JSON
Raw Normal View History

{
"id": "guide/deprecations",
"title": "Deprecated APIs and features",
"contents": "\n\n\n<div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/aio/content/guide/deprecations.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</div>\n\n\n<div class=\"content\">\n <h1 id=\"deprecated-apis-and-features\">Deprecated APIs and features<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/deprecations#deprecated-apis-and-features\"><i class=\"material-icons\">link</i></a></h1>\n<p>Angular strives to balance innovation and stability.\nSometimes, APIs and features become obsolete and need to be removed or replaced so that Angular can stay current with new best practices, changing dependencies, or changes in the (web) platform itself.</p>\n<p>To make these transitions as easy as possible, we deprecate APIs and features for a period of time before removing them. This gives you time to update your apps to the latest APIs and best practices.</p>\n<p>This guide contains a summary of all Angular APIs and features that are currently deprecated.</p>\n<div class=\"alert is-helpful\">\n<p>Features and APIs that were deprecated in v6 or earlier are candidates for removal in version 9 or any later major version. For information about Angular's deprecation and removal practices, see <a href=\"guide/releases#deprecation-practices\" title=\"Angular Release Practices: Deprecation practices\">Angular Release Practices</a>.</p>\n<p>For step-by-step instructions on how to update to the latest Angular release, use the interactive update guide at <a href=\"https://update.angular.io\">update.angular.io</a>.</p>\n</div>\n<h2 id=\"index\">Index<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/deprecations#index\"><i class=\"material-icons\">link</i></a></h2>\n<p>To help you future-proof your apps, the following table lists all deprecated APIs and features, organized by the release in which they are candidates for removal. Each item is linked to the section later in this guide that describes the deprecation reason and replacement options.</p>\n<!--\ndeprecation -> removal cheat sheet\nv4 - v7\nv5 - v8\nv6 - v9\nv7 - v10\nv8 - v11\nv9 - v12\nv10 - v13\nv11 - v14\nv12 - v15\n-->\n<table>\n<thead>\n<tr>\n<th>Area</th>\n<th>API or Feature</th>\n<th>May be removed in</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>@angular/common</code></td>\n<td><a href=\"guide/deprecations#reflectiveinjector\"><code>ReflectiveInjector</code></a></td>\n<td><!--v8--> v11</td>\n</tr>\n<tr>\n<td><code>@angular/common</code></td>\n<td><a href=\"api/common/CurrencyPipe#currency-code-deprecation\"><code>CurrencyPipe</code> - <code>DEFAULT_CURRENCY_CODE</code></a></td>\n<td><!--v9--> v11</td>\n</tr>\n<tr>\n<td><code>@angular/common/<a href=\"api/common/http\" class=\"code-anchor\">http</a></code></td>\n<td><a href=\"api/common/http/XhrFactory\"><code>XhrFactory</code></a></td>\n<td><!--v12--> v15</td>\n</tr>\n<tr>\n<td><code>@angular/core</code></td>\n<td><a href=\"guide/deprecations#core\"><code>DefaultIterableDiffer</code></a></td>\n<td><!--v7--> v11</td>\n</tr>\n<tr>\n<td><code>@angular/core</code></td>\n<td><a href=\"guide/deprecations#core\"><code>ReflectiveKey</code></a></td>\n<td><!--v8--> v11</td>\n</tr>\n<tr>\n<td><code>@angular/core</code></td>\n<td><a href=\"guide/deprecations#core\"><code>RenderComponentType</code></a></td>\n<td><!--v7--> v11</td>\n</tr>\n<tr>\n<td><code>@angular/core</code></td>\n<td><a href=\"guide/deprecations#core\"><code>WrappedValue</code></a></td>\n<td><!--v10--> v12</td>\n</tr>\n<tr>\n<td><code>@angular/forms</code></td>\n<td><a href=\"guide/deprecations#ngmodel-reactive\"><code>ngModel</code> with reactive forms</a></td>\n<td><!--v6--> v11</td>\n</tr>\n<tr>\n<td><code>@angular/upgrade</code></td>\n<td><a href=\"guide/deprecations#upgrade\"><code>@angular/upgrade</code></a></td>\n<td><!--v8--> v11</td>\n</tr>\n<tr>\n<td><code>@angular/upgrade</code></td>\n<td><a href=\"
}