How do you categorize data binding types?
How do you categorize data binding types?
In Angular, data binding types can be categorized based on the direction of data flow between the component and the view. Here are the main categories:
From the Source to the View (One-way)
{{expression}}
to bind data from the component to the view.[target]="expression"
to bind properties of DOM elements to data in the component.bind-target="expression"
for binding HTML attributes to component data.From the View to the Source (One-way)
(target)="statement"
to execute component methods when specified DOM events occur, such as clicks or mouse movements.From the View to the Source and Back to the View (Two-way)
middle
Gợi ý câu hỏi phỏng vấn
Chưa có bình luận nào