Attribute data binding In Angular


Attribute data binding In Angular

Attribute data binding In Angular



Attribute-Binding-in-Angular

In this article, I are going to cover “What is attribute data binding in Angular? What is difference between HTML and DOM?"!

Attribute Binding

Attribute binding is useful where we don’t have any property in DOM respected to an HTML element attribute. Let’s try to understand this statement with the help of an example.

Suppose, you want to create a table with some columns and want to merge these columns into a single column using the colspan attribute of the element just like below. The value of this colspan attribute will be set up through property binding dynamically from the component.

1 comment: