Angular - Template-Driven Forms
You want to disable the submit button in an Angular form until all required fields are valid. Which approach correctly implements this behavior?
What should replace
<form (ngSubmit)="submit()" #myForm="ngForm"> <input name="email" [(ngModel)]="email" required> <input name="password" [(ngModel)]="password" required minlength="6"> <button type="submit" ???>Submit</button> </form>
What should replace
??? to disable the button when the form is invalid?