What is property binding? Explain with a syntax.
In Angular, Property binding is a technique that lets you set the property of a particular view element. It involves updating values within a property in the component and then binding it to an element inside the view template. Property binding in Angular uses the [ ] syntax for data binding. An example of this is setting the disabled state of a button.
BY Best Interview Question ON 01 Mar 2020
Example
// component.html
<button [disabled]="buttonDisabled"></button>
HTML
// component.ts
@Component({
templateUrl: 'component.html',
selector: 'app-component',
})
export class Component {
buttonDisabled = true;
}