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.
Loading...
Related Quiz
- What is the primary purpose of Dependency Injection (DI) in Angular?
- The _____ Subject will emit its most recent value to all subscribers whenever they subscribe.
- In a dynamic form, to validate data asynchronously on the server-side, you can use a custom _____ validator.
- What is the primary use of custom validators in Angular forms?
- How can you implement a custom form control that works seamlessly with Form Groups and Form Arrays?