angular-docs-cn/packages
Andrew Scott 779344012a refactor(core): assert TNode is not a container when setting attribute on element (#37111)
This PR provides a more helpful error than the one currently present:
`el.setAttribute is not a function`. It is not valid to have directives with host bindings
on `ng-template` or `ng-container` nodes. VE would silently ignore this, while Ivy
attempts to set the attribute and throws an error because these are comment nodes
and do not have `setAttribute` functionality.

It is better to throw a helpful error than to silently ignore this because
putting a directive with host binding on an `ng-template` or `ng-container` is most often a mistake.
Developers should be made aware that the host binding will have no effect in these cases.

Note that an error is already thrown in Ivy, as mentioned above, so this
is not a breaking change and can be merged to both master and patch.

Resolves #35994

PR Close #37111
2020-06-08 11:21:05 -07:00
..
animations build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
bazel build: upgrade to bazel 3.2.0 and rules_nodejs 1.7.0 (#37358) 2020-06-08 09:15:50 -07:00
benchpress build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
common fix(common): prevent duplicate URL change notifications (#37404) 2020-06-04 16:45:06 -07:00
compiler build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
compiler-cli style(ngcc): post-merge review tidy up (#37461) 2020-06-08 09:32:11 -07:00
core refactor(core): assert TNode is not a container when setting attribute on element (#37111) 2020-06-08 11:21:05 -07:00
docs docs(di): fix typo in advanced di doc (#36634) 2020-05-01 09:50:28 -07:00
elements fix(elements): fire custom element output events during component initialization (#36161) 2020-06-05 10:36:39 -07:00
examples build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
forms refactor(forms): use a type guard to get rid of casts (#32541) 2020-06-03 12:29:26 -07:00
language-service test(language-service): Remove all markers from test project (#37475) 2020-06-08 10:25:42 -07:00
localize build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
platform-browser build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
platform-browser-dynamic build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
platform-server build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
platform-webworker build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
platform-webworker-dynamic build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
private/testing build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
router docs(router): fix a typo in example code (#37309) 2020-06-01 17:19:45 -04:00
service-worker fix(service-worker): Don't stay locked in EXISTING_CLIENTS_ONLY if corrupted data (#37453) 2020-06-08 09:31:34 -07:00
upgrade refactor(core): remove `looseIdentical` in favor of built-in `Object.is` (#37191) 2020-06-01 17:19:17 -04:00
zone.js refactor(dev-infra): small changes and fixes (#36800) 2020-06-03 13:12:30 -07:00
BUILD.bazel build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
circular-deps-test.conf.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
license-banner.txt build: bump year (#34651) 2020-01-13 07:21:43 -08:00
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-build-no-strict.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-build.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig.json revert: "revert: "feat(dev-infra): exposed new rule 'component_benchmark' via dev_infra (#36434)" (#36798)" (#36800) 2020-06-03 13:12:30 -07:00
types.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00

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