angular-docs-cn/packages
crisbeto 221782a8a1 fix(ivy): DebugNode.query not picking up nodes inserted through Renderer2 (#31716)
In ViewEngine nodes that were inserted through `Renderer2` would also be picked up by `DebugNode.query` and `DebugNode.queryAll`. This worked because everything in ViewEngine went through `Renderer2` and `DebugRenderer2` in dev mode which was able to keep track of the child nodes as they're being inserted. This no longer works in Ivy, because we don't use `DebugRenderer2` and debug nodes work a little differently. These changes work around the issue by walking the DOM as the logical tree is being walked and looking for matches. Note that this is __not__ optimal, because we're walking similar trees multiple times. ViewEngine could do it more efficiently, because all the insertions go through Renderer2, however that's not the case in Ivy. This approach is being used because:
1. Matching the ViewEngine behavior would mean potentially introducing a depedency from `Renderer2` to Ivy which could bring Ivy code into ViewEngine.
2. We would have to make `Renderer3` "know" about debug nodes.
3. It allows us to capture nodes that were inserted directly via the DOM.

PR Close #31716
2019-07-23 15:51:00 -07:00
..
animations build: convert entry_point to label (#30627) 2019-06-11 00:03:11 +00:00
bazel fix(bazel): increase memory limit of ngc under bazel from 2 to 4 GB (#31784) 2019-07-22 12:14:14 -07:00
benchpress build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
common fix(ivy): ensure NgClass does not overwrite other dir data (#31788) 2019-07-22 16:56:27 -07:00
compiler perf(compiler): avoid copying from prototype while cloning an object (#31638) 2019-07-23 15:49:30 -07:00
compiler-cli fix(ivy): incorrect ChangeDetectorRef injected into pipes used in component inputs (#31438) 2019-07-23 15:46:23 -07:00
core fix(ivy): DebugNode.query not picking up nodes inserted through Renderer2 (#31716) 2019-07-23 15:51:00 -07:00
docs
elements fix(elements): handle falsy initial value (#31604) 2019-07-18 14:26:37 -07:00
examples refactor: fix remaining typescript strict flag failures (#30993) 2019-07-18 14:21:25 -07:00
forms refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
http refactor: fix remaining typescript strict flag failures (#30993) 2019-07-18 14:21:25 -07:00
language-service refactor(language-service): Remove unused class and method (#31597) 2019-07-22 09:52:42 -07:00
platform-browser fix(platform-browser): debug element query predicates not compatible with strictFunctionTypes (#30993) 2019-07-18 14:21:26 -07:00
platform-browser-dynamic build: convert entry_point to label (#30627) 2019-06-11 00:03:11 +00:00
platform-server refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
platform-webworker refactor: fix remaining typescript strict flag failures (#30993) 2019-07-18 14:21:25 -07:00
platform-webworker-dynamic build: convert entry_point to label (#30627) 2019-06-11 00:03:11 +00:00
private/testing test(ivy): add onlyInIvy perf counter expectations (#30339) 2019-05-09 11:22:00 -07:00
router refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
service-worker refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
upgrade refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
zone.js refactor: ensure zone.js can be built with typescript strict flag (#30993) 2019-07-18 14:21:26 -07:00
BUILD.bazel refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
README.md Revert "docs: Remove unneeded file (#18106)" 2017-07-20 16:46:47 -05:00
empty.ts
goog.d.ts fix(ivy): use goog.LOCALE for Closure Compiler to define default LOCALE_ID (#31519) 2019-07-16 13:02:10 -04:00
license-banner.txt build: bump year (#27880) 2019-01-11 11:15:59 -08:00
system.d.ts
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 refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
types.d.ts build: switch to typescript's es2015 typings (#28570) 2019-02-06 14:17:55 -05:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT