angular/packages
arturovt 7f1cfcbc97 docs: clarify ngDoCheck invocation behavior with OnPush strategy
The previous documentation for `DoCheck` / `ngDoCheck` implied that the
default change-detector had run on the directive itself, which is
misleading. `ngDoCheck` is actually invoked when the *parent's*
change-detector checks the directive's input bindings — meaning it fires
even for `OnPush` components whose own change detection was skipped.

Updated three places in lifecycle_hooks.ts:
- Interface description: scopes "the check" to input bindings in the
  parent template and adds an explicit OnPush callout.
- "detects changes" clarified to "detects changes to the directive's
  input bindings".
- Method description: "after the default change-detector runs" →
  "after the default change-detector has checked the directive's input
  bindings in the parent template".

Fixes #48140

(cherry picked from commit ca44055166)
2026-05-20 11:12:13 -07:00
..
animations refactor(core): use the @Service decorator where possible. 2026-05-07 16:03:34 -07:00
benchpress build: update cross-repo angular dependencies 2026-03-05 11:43:25 -08:00
common refactor(http): update HTTP resource options APIs to stable 2026-05-12 10:48:07 -07:00
compiler fix(compiler): strip namespaced SVG script elements during template compilation 2026-05-19 13:06:06 -07:00
compiler-cli fix(compiler): strip namespaced SVG script elements during template compilation 2026-05-19 13:06:06 -07:00
core docs: clarify ngDoCheck invocation behavior with OnPush strategy 2026-05-20 11:12:13 -07:00
docs/di build: format md files 2025-11-06 10:03:05 -08:00
elements feat(compiler-cli): add support for Node.js 26.0.0 2026-05-06 09:55:38 -07:00
examples test(upgrade): exclude unit test files from E2E application sources 2026-05-19 12:57:53 -07:00
forms perf(forms): avoid spurious recomputation in FormField.parseErrors 2026-05-18 13:08:37 -07:00
language-service fix(compiler): type check invalid for loops 2026-05-13 11:26:46 -07:00
localize feat(compiler-cli): add support for Node.js 26.0.0 2026-05-06 09:55:38 -07:00
misc/angular-in-memory-web-api docs: normalize product name casing across docs 2026-05-07 15:09:50 -07:00
platform-browser refactor(core): use the @Service decorator where possible. 2026-05-07 16:03:34 -07:00
platform-browser-dynamic feat(compiler-cli): add support for Node.js 26.0.0 2026-05-06 09:55:38 -07:00
platform-server fix(platform-server): forward BEFORE_APP_SERIALIZED errors to ErrorHandler 2026-05-08 14:10:16 -07:00
private/testing build: consolidate domino bundling in platform-server 2026-03-25 13:31:05 -07:00
router fix(router): skip scroll-to-top on initial navigation when hydrating 2026-05-19 13:02:00 -07:00
service-worker feat(compiler-cli): add support for Node.js 26.0.0 2026-05-06 09:55:38 -07:00
ssr/docs build: add node type for api extraction 2026-02-11 13:57:58 -08:00
upgrade feat(compiler-cli): add support for Node.js 26.0.0 2026-05-06 09:55:38 -07:00
zone.js build: update dependency typescript to v6.0.3 2026-05-04 13:05:58 -07:00
BUILD.bazel refactor(platform-browser): remove Hammer integration 2026-03-19 16:13:20 -07:00
circular-deps-test.conf.cjs build: use Node.js built-in TypeScript support for dev-infra scripts 2026-01-02 08:15:40 +01:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt docs: update copyright year 2026-01-07 12:28:34 -05:00
package.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
README.md build: format md files 2025-11-06 10:03:05 -08:00
system.d.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
tsconfig-build.json Revert "refactor(compiler-cli): remove deep imports from compiler-cli (#64732)" 2025-11-06 13:09:01 -08:00
tsconfig-legacy-saucelabs.json ci: remove remainings of saucelabs tests 2026-04-22 14:41:03 -07:00
tsconfig-test.json
tsconfig.json feat(compiler-cli): enable type checking of host bindings by default (#63654) 2025-09-09 14:34:29 -07:00
tsec-exemption.json
types.d.ts refactor(platform-browser): remove Hammer integration 2026-03-19 16:13:20 -07:00

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