0 votes
in Angular by

How do you categorize data binding types?

1 Answer

0 votes
by

Binding types can be grouped into three categories distinguished by the direction of data flow. They are listed as below,

From the source-to-view

From view-to-source

View-to-source-to-view

The possible binding syntax can be tabularized as below,

Data direction Syntax Type

From the source-to-view(One-way) 1. {{expression}} 2. [target]="expression" 3. bind-target="expression" Interpolation, Property, Attribute, Class, Style

From view-to-source(One-way) 1. (target)="statement" 2. on-target="statement" Event

View-to-source-to-view(Two-way) 1. [(target)]="expression" 2. bindon-target="expression" Two-way

Related questions

0 votes
0 votes
asked Jun 6, 2022 in Angular by john ganales
+1 vote
asked Aug 22, 2019 in Selenium by john ganales
...