This guide contains information related to updating to the latest version of Angular.
For step-by-step instructions on how to update to the latest Angular release (and leverage our automated migration tools to do so), use the interactive update guide at update.angular.io.
For information about Angular's deprecation and removal practices, see Angular Release Practices.
NavigationExtras#preserveQueryParamshas been removed from
@angular/router. See PR 38762
CollectionChangeRecordhas been removed from
@angular/core. See PR 38668.
'corrected'so that new applications are automatically opted-in to the corrected behavior from PR 22394. Applications which use the current default are updated by a migration to specify
'legacy'to ensure the current behavior is maintained when the default is updated. See PR 25609.
currsnapshots were reversed in the call to
shouldReuseRoutewhen processing child routes. Usually this ordering mistake doesn't matter because most implementations of
shouldReuseRoutejust do an equality comparison between
curr. However, some implementations actually do rely on values specifically on one of the two and will need to be updated. See PR 26949.
ViewEncapsulation.Nativehas been removed. Angular previously supported a view encapsulation mode
ViewEncapsulaion.Nativethat was based on the v0 Shadow DOM Draft APIs. These APIs have been superceded by the final Shadow DOM APIs, which are enabled via
ViewEncapsulation.ShadowDom. For background information about this change, see Web Components update: more time to upgrade to v1 APIs.
@angular/platform-webworkerhas been removed and will no longer be supported. See PR 38846.
@angular/platform-webworkeris no longer supported. No further versions will be published. See PR 38846.
initialNavigation. For more information, see initialNavigation in the API documentation. See PR 33128.
DatePipeno longer rounds up fractional milliseconds. See PR 38009.
NG_VALUE_ACCESSORis now readonly. See PR 29273.
AbstractControl#parentnow indicates that it may be null. See PR 32671.
overrideProviderbefore initializing the TestBed will now throw an error. See PR 38717.
@angular/formspackage used to have
anyas a type of validators and asyncValidators arguments in constructors. Now these arguments are properly typed, so if your code relies on directive constructor types it may require some updates to improve type safety. See PR 38994.
undefinedinputs. See PR 39151.
@angular/core/testinghas been renamed to
asyncsyntax. The existing function is deprecated and will be removed in a future version. See PR 37583.
|Area||API or Feature||May be removed in|
| ||Rename ||v13|
The following APIs have been removed starting with version 11.0.0*:
| || ||no action needed||NavigationExtras#preserveQueryParams has been removed from |
| || ||no action needed||CollectionChangeRecord has been removed from |
| || ||no action needed||Angular previously supported a view encapsulation mode |
Since version 9, Angular Ivy is the default rendering engine. If you haven't heard of Ivy, you can read more about it in the Angular Ivy guide.
Among other features, Ivy introduces more comprehensive type-checking within templates. For details, see Template Type-checking.
For general guidance on debugging and a list of minor changes associated with Ivy, see the Ivy compatibility guide.
For help with opting out of Ivy, see the instructions here.
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.