Home > front end >  Reactive Forms and Angular Material
Reactive Forms and Angular Material

Time:09-12

I was working on this form using reactive forms from Angular and everything was working fine but then I started to use Angular Material for radio buttons and the logic that I wrote stoped working. Any recommendation? The commented code on the file child.component.html is my original code .

MY CODE

CodePudding user response:

Check your code. You have to put formControlName at radio-group so can give values at radio button

 <mat-radio-group
      aria-label="Select an option"
      formControlName="titleAction"
    >

  • Related