angular/packages/core/src
arturovt ca44055166 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
2026-05-20 11:12:06 -07:00
..
animation feat(core): re-introduce nested leave animations scoped to component boundaries 2026-03-13 13:01:55 -06:00
application refactor(core): use the @Service decorator where possible. 2026-05-07 17:03:30 -06:00
authoring fix(core): allow explicit read generic with signal input transforms 2026-05-01 15:53:56 -07:00
change_detection docs: clarify ngDoCheck invocation behavior with OnPush strategy 2026-05-20 11:12:06 -07:00
compiler refactor(compiler): sync compiler_facade_interface replica with main 2026-05-19 13:07:05 -07:00
debug feat(core): implement Angular DI graph in-page AI tool 2026-04-14 18:35:51 +03:00
defer refactor(core): address review comments on NG0750 error message 2026-04-02 14:55:42 -07:00
di refactor(core): patch special provider classes with __NG_ELEMENT_ID__ 2026-05-13 12:15:21 -07:00
hydration refactor(core): patch special provider classes with __NG_ELEMENT_ID__ 2026-05-13 12:15:21 -07:00
i18n docs: add @see links to API docs for better discoverability 2026-01-05 12:12:24 -05:00
interface refactor(compiler): add support for importing foreign components 2026-05-18 13:08:59 -07:00
internal refactor(core): update internal utility 2026-05-18 13:23:46 -07:00
linker refactor(core): patch special provider classes with __NG_ELEMENT_ID__ 2026-05-13 12:15:21 -07:00
metadata refactor(compiler): add support for importing foreign components 2026-05-18 13:08:59 -07:00
platform feat(core): register AI runtime debugging tools 2026-04-13 14:12:48 +03:00
reflection build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
render refactor(core): patch special provider classes with __NG_ELEMENT_ID__ 2026-05-13 12:15:21 -07:00
render3 fix(core): support prefix-insensitive DOM schema lookups and compile-time i18n attribute validation 2026-05-19 13:00:32 -07:00
resource refactor(core): mark resource() overloads as @publicApi 22.0 2026-05-13 15:54:55 -07:00
sanitization fix(core): synchronize core sanitization schema with compiler 2026-05-19 18:02:43 -07:00
testability feat(core): Update Testability to use PendingTasks for stability indicator 2026-04-20 13:08:43 -07:00
util refactor(core): add support for default exports to injectAsync 2026-04-30 15:53:07 -07:00
view refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
webmcp refactor(core): add "experimental" to WebMCP API names. 2026-05-11 12:43:06 -07:00
zone docs: Adds links to relevant guides for APIs in core package 2025-11-17 08:47:35 -08:00
authoring.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
cached_injector_service.ts refactor(core): move interfaces around (#64535) 2025-10-20 17:49:39 +00:00
change_detection.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
console.ts refactor: remove unnecessary TSLint rule flags (#59365) 2025-01-07 16:06:21 +00:00
core.externs.js refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
core.ts fix(core): support prefix-insensitive DOM schema lookups and compile-time i18n attribute validation 2026-05-19 13:00:32 -07:00
core_private_export.ts feat(core): add ability to cache resources for SSR 2026-05-06 09:57:49 -07:00
core_reactivity_export.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
core_reactivity_export_internal.ts refactor(core): expose isWritableSignal to the publicApi 2025-10-29 20:31:41 +00:00
core_render3_private_export.ts refactor(core): Makes @defer(hydrate ...) runtime tree-shakable 2026-05-01 15:54:55 -07:00
di.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
document.ts refactor(core): correct all typeof ngDevMode comparison patterns introduced by #63875 2025-12-08 10:30:01 -08:00
error_details_base_url.ts refactor(core): update error message links to versioned docs (#66374) 2026-01-09 22:33:51 +00:00
error_handler.ts refactor(core): correct all typeof ngDevMode comparison patterns introduced by #63875 2025-12-08 10:30:01 -08:00
errors.ts refactor(core): remove deprecated UNSAFE_IFRAME_ATTRS alias 2026-05-18 13:16:02 -07:00
event_delegation_utils.ts fix(core): guard against non-object events and avoid listener wrapper identity mismatch 2026-04-27 17:07:36 -07:00
event_emitter.ts docs: Adds links to relevant guides for APIs in core package 2025-11-17 08:47:35 -08:00
image_performance_warning.ts refactor(core): use the @Service decorator where possible. 2026-05-07 17:03:30 -06:00
linker.ts refactor(core): simplifying the ComponentFactory usage 2026-04-13 22:24:18 +03:00
metadata.ts refactor(core): move interfaces around (#64535) 2025-10-20 17:49:39 +00:00
ng_reflect.ts refactor(core): remove redundant providedIn: 'root' from injection tokens 2025-11-04 00:31:52 +00:00
pending_tasks.ts docs: Adds links to relevant guides for APIs in core package 2025-11-17 08:47:35 -08:00
pending_tasks_internal.ts feat(core): Add stability debugging utility 2025-12-17 15:43:05 -08:00
profiler.ts refactor(core): implement missing OnDestroy for schedulers 2026-01-02 08:19:57 +01:00
r3_symbols.ts refactor(core): use the @Service decorator where possible. 2026-05-07 17:03:30 -06:00
render.ts feat(core): add event listener options to renderer (#59092) 2024-12-10 13:39:47 -08:00
transfer_state.ts fix(core): escape forward slashes in transfer state to prevent crawler indexing 2026-04-13 13:54:55 +03:00
type_checking.ts refactor(core): expose function to assert type of variables (#62648) 2025-07-16 12:40:25 +02:00
version.ts refactor(core): mark VERSION as @__PURE__ for better tree-shaking (#63400) 2025-08-27 11:39:06 -07:00
zone.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00