c6ecdc9a81
As of v10, undecorated classes using Angular features are no longer supported. In v10, we plan on removing the undecorated classes compatibility code in ngtsc. This means that old patterns for undecorated classes will result in compilation errors. We had a migration for this in v9 already, but it looks like the migration does not handle cases where classes uses lifecycle hooks. This is handled in the ngtsc compatibility code, and we should handle it similarly in migrations too. This has not been outlined in the migration plan initially, but an appendix has been added for v10 to the plan document. https://hackmd.io/vuQfavzfRG6KUCtU7oK_EA?both. Note: The migration is unable to determine whether a given undecorated class that only defines `ngOnDestroy` is a directive or an actual service. This means that in some cases the migration cannot do more than adding a TODO and printing an failure. Certainly there are more ways to determine the type of such classes, but it would involve metadata and NgModule analysis. This is out of scope for this migration. PR Close #36921 |
||
---|---|---|
.. | ||
animations | ||
bazel | ||
benchpress | ||
common | ||
compiler | ||
compiler-cli | ||
core | ||
docs | ||
elements | ||
examples | ||
forms | ||
language-service | ||
localize | ||
platform-browser | ||
platform-browser-dynamic | ||
platform-server | ||
platform-webworker | ||
platform-webworker-dynamic | ||
private/testing | ||
router | ||
service-worker | ||
upgrade | ||
zone.js | ||
BUILD.bazel | ||
README.md | ||
circular-deps-test.conf.js | ||
empty.ts | ||
goog.d.ts | ||
license-banner.txt | ||
system.d.ts | ||
tsconfig-build-no-strict.json | ||
tsconfig-build.json | ||
tsconfig-test.json | ||
tsconfig.json | ||
types.d.ts |
README.md
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT