Property Binding

Angular Property Binding Attributes and Properties are not the same. Attributes - HTML Properties - DOM(Document Object Model) Attributes initialize DOM properties and then type are done. Attribute values cannot change once they are initialized. Property values however can change.

<input type="text" value="Vishwas">
$0.getAttributes('value');
$0.value;

- 아래코드는 원하지 않는 결과를 보여준다. 편집을 할 수 없다.

<input disable="false" type="text" value="Vishwas">

- 이렇게 Property로 지정하면 편집할 수 있다.

<input [disable]="false" type="text" value="Vishwas">

또는

<input bind-disable="false" type="text" value="Vishwas">