keeping one FormControl mutipe input elements ReactiveForms in angular

Viewed 16

How do I keep the one form controls for the multiple input values. whenever we updating the input value the form control taking the last input value..

ngOnInit() {
   this.form = this.fb.group({
   description: [""],
 });
}


<mat-form-field>
     <mat-label>Description</mat-label>
       <input
          type="text"
           matInput
           placeholder="Description"
           formControlName="description"
           required
           />
  </mat-form-field>
0 Answers
Related