Interview Questions

1. How do you categorize data binding types in Angular?

In Angular, we can categorize data binding types into three categories distinguished by the direction of data flow. These data binding categories are:

  • From the source-to-view
  • From view-to-source
  • View-to-source-to-view

Let's see their possible binding syntax:

Data directionSyntaxType
From the source-to-view(One-way data binding)1. {{expression}}
2. [target]="expression"
3. bind-target="expression"
Interpolation, Property, Attribute, Class, Style
From view-to-source(One-way data binding)1. (target)="statement"
2. on-target="statement"
Event
View-to-source-to-view(Two-way data binding)1. [(target)]="expression"
2.bindon-target="expression"
Two-way data binding
By Md Riyazuddin 2 0
Is this helpful? Yes No

Submit an interview question

Submitted questions and answers are subject to review and editing, and may or may not be selected for posting, at the sole discretion of w3Sniff.

Get Started

Comments

Leave a Comment


Check out more interview questions

Based on your skills

MS SQL Server

1539814 1720 19 859

Angular

38946 92 0 46

Wordpress

31517 72 1 36