In template-driven forms, which directive is utilized to implement a group of form controls?
- ngControlGroup
- formControlGroup
- ngFormGroup
- formGroup
In template-driven forms, the formGroup directive is used to implement a group of form controls. It allows you to group related form controls together, making it easier to manage their validation and state. The other options mentioned are not valid directives for implementing form control groups in template-driven forms.
Loading...
Related Quiz
- When you have a deeply nested route structure, how would you handle shared route parameters or data between parent and child routes?
- For a CanDeactivate guard, which method parameter allows you to access the current instance of the component being deactivated?
- When using Lazy Loading, which property in the Angular routing configuration is used to point to the lazily loaded module?
- The method setValidators() and clearValidators() belong to the ______ class in Angular's Reactive Forms.
- Which command in Angular CLI generates a new service?