How can I disable mat-form-field or mat-autocomplete if list is empty?

Viewed 2522
1 Answers

If you want to disable MatChipList just write [disabled]="true" in mat-chip-list tag. Now the user can not remove chips anymore.

If you want to disable the input field, just write [disabled]="true" in the input tag.

Of course you can use any condition instead of true

Related