Complete the code to import the module needed for reactive forms in Angular.
import { [1] } from '@angular/forms';
The ReactiveFormsModule is required to use reactive forms in Angular.
Complete the code to create a form control in a reactive form.
this.myForm = new FormGroup({ name: new [1]('') });FormControl creates a single control in a reactive form.
Fix the error in the template to bind a reactive form control named 'email'.
<input type="email" [1]="myForm.get('email')">
Use [formControl] to bind a FormControl instance in reactive forms.
Fill both blanks to create a template-driven form input with two-way binding.
<input type="text" name="username" [1]="username" [2]>
Template-driven forms use [(ngModel)] for two-way binding and required for validation.
Fill the blank to define a reactive form with a FormBuilder and add a required validator.
this.myForm = this.fb.group({ email: ['', [1].required] });The Validators class provides built-in validators like required for reactive forms.
