Disable button if input length less than 3
You only need to pass an expression to disabled
property, there's no need to create object:
<button [disabled]="newListItem.length < 3"></button>
You only need to pass an expression to disabled
property, there's no need to create object:
<button [disabled]="newListItem.length < 3"></button>