I have inputs like this:
<mat-form-field *ngFor="let d of data">
<mat-label>Item</mat-label>
<input [(ngModel)]="d.item" matInput required>
</mat-form-field>`
I have tried this:
<form #inputForm="ngForm">
<mat-form-field *ngFor="let d of data">
<mat-label>Item</mat-label>
<input [name]="d.item" [(ngModel)]="d.item" matInput required>
</mat-form-field>
</form>
<button class="confirmButton" [disabled]="!inputForm.valid" mat-button [mat-dialog-close]="data">Send</button>
but when I type something just in one of inputs button is enabled, any soultion to this?