NG.I · Angular 22 practice question

A developer is implementing a bidirectional synchronization feature between a parent component holding a state variable and a child component managing that state. Based on the provided pattern, what is the required mechanism for the parent to receive updates initiated by the child?

app-counter [(count)]="initialCount"
Choose one answer
Check answer and explanation

Correct answer: The parent binds using the two-way binding syntax `[(count)]` on the child selector, leveraging the child's `model()` signal.

Explanation

The correct implementation involves applying the two-way binding syntax, such as `[(count)]`, directly to the child component's selector. This functionality is enabled because the child component utilizes the `model()` signal for its property.

Common trap

The pattern described in the option stating that the child component must expose a specific output event for the parent to subscribe to represents a standard one-way data flow mechanism, which is not the technique employed in this scenario. Furthermore, the suggestion that the child component should employ the `ngModel` API on its property is generally associated with form control elements.

Source: Angular docs: Two-way binding — Two-way binding between components
Checked against the cited text on 2026-11-25.

Report an error in this question