angular-docs-cn/packages
Paul Gschwendtner d0280a0335 fix(compiler): remove outdated and invalid warning for unresolved DI parameters (#36985)
In past versions of the View Engine compiler, we added a warning that is
printed whenever the compiler comes across an Angular declaration with a
constructor that does not match suitable DI tokens. The warning mentioned
that in `v6.x` it will turn into an actual error.

This actually happened as expected for most cases. e.g. the constructor
of `@NgModule`, `@Component`'s, `@Pipe`'s etc will be checked and an error
will be reported if constructor is not DI compatible.

The warning has never been removed though as it was still relevant for
unprovided injectables, or injectables serialized into summaries of the
Angular compiler.

As of version 10, classes that use Angular features need an Angular decorator.
This includes base classes of services that use the lifecycles Angular feature.
Due to this being a common pattern now, we can remove the warning in
View Engine. The warning is not correct, and also quite confusing as it
mentions the planned removal in `v6.x`.

Resolves FW-2147.

PR Close #36985
2020-05-07 14:44:42 -07:00
..
animations build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
bazel test: disable ng_package tests in ivy test jobs (#36944) 2020-05-06 13:54:27 -07:00
benchpress
common build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
compiler fix(compiler): remove outdated and invalid warning for unresolved DI parameters (#36985) 2020-05-07 14:44:42 -07:00
compiler-cli test(compiler-cli): ensure reflection tests are not brittle to case-sensitivity (#36859) 2020-05-06 15:23:16 -07:00
core refactor: enable ng update migrations for v10 (#36921) 2020-05-06 15:06:10 -07:00
docs
elements build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
examples
forms fix(forms): number input fires valueChanges twice. (#36087) 2020-05-07 10:20:26 -07:00
language-service
localize build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
platform-browser refactor: disable sanitization for [style] and [style.prop] bindings (#35621) 2020-05-06 15:00:22 -07:00
platform-browser-dynamic build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
platform-server build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
platform-webworker build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
platform-webworker-dynamic build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
private/testing
router refactor: fix undecorated classes with angular features in repo (#36921) 2020-05-06 15:06:10 -07:00
service-worker build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
upgrade refactor: fix undecorated classes with angular features in repo (#36921) 2020-05-06 15:06:10 -07:00
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