How do you track the validity and state of a form control in a template-driven form?

  • Using *ngIf directive
  • Using [(ngModel)] directive
  • Using [formControl] directive
  • Using [formState] directive
To track the validity and state of a form control in a template-driven form, you can use the [formControl] directive, which binds the control's state and validity to the template.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *