Two-Way Binding

noun

say it: “TOO WAY BYND-ing” /tuː weɪ ˈbaɪndɪŋ/

The [( )] syntax that keeps a form field and a component value in step in both directions.

What is Two-Way Binding?

Two-way binding keeps a form field and a component value in sync in both directions, using the "banana in a box" syntax [( )].

<input [(ngModel)]="searchText" />
<p>You typed: {{ searchText }}</p>

In a sentence

  • “Two-way binding keeps the quantity box and the quantity value always the same.”

Level: Apprentice · More Angular terms at this level

Updated