Property Binding
noun
say it: “PROP-er-tee BYND-ing” /ˈprɒpərti ˈbaɪndɪŋ/
The [ ] syntax that sets an element's property from a component value.
What is Property Binding?
Property binding uses square brackets to set an element's property from a component value. [disabled]="isSaving" disables the button while saving.
<button [disabled]="isSaving">Save</button>
<img [src]="avatarUrl" [alt]="userName" />
In a sentence
- “Property binding, [disabled]="!inStock", grays out the button when stock runs out.”
Level: Novice · More Angular terms at this level
Updated