[] binding in angular code example
Example: angular binding
<input [disabled]="condition ? true : false">
<input [attr.disabled]="condition ? 'disabled' : null">
<input [disabled]="condition ? true : false">
<input [attr.disabled]="condition ? 'disabled' : null">