Skip to content
masterclass Buddy

Angular · Concept

Change detection

Angular component metadata can control change detection, template whitespace, and validation of custom elements. OnPush performs fewer automatic checks, while schemas can allow elements that Angular does not recognize.

Last updated

Syntax

@Component({ changeDetection, preserveWhitespaces, schemas })

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ChangeDetectionStrategy
  • ChangeDetectorRef.markForCheck
  • CUSTOM_ELEMENTS_SCHEMA
  • NO_ERRORS_SCHEMA
  • preserveWhitespaces
  • Component

Source: Advanced configuration • Angular. Checked 2026-11-03.