Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 角5材料:以反应形式制作所需的mat无线电组_Angular_Angular Material_Angular5 - Fatal编程技术网

Angular 角5材料:以反应形式制作所需的mat无线电组

Angular 角5材料:以反应形式制作所需的mat无线电组,angular,angular-material,angular5,Angular,Angular Material,Angular5,试图使我的单选按钮组需要,但没有找到任何具体的如何做到这一点。这是我的html代码和ts: <mat-radio-group name="dealtype" [(ngModel)]="formType" formControlName="formType" required> <mat-radio-button value="New Lease">New Lease</mat-radio-button> <mat-

试图使我的单选按钮组需要,但没有找到任何具体的如何做到这一点。这是我的html代码和ts:

<mat-radio-group name="dealtype" [(ngModel)]="formType" formControlName="formType" required>
          <mat-radio-button value="New Lease">New Lease</mat-radio-button>
          <mat-radio-button value="Ground Lease-New">Ground Lease-New</mat-radio-button>
</mat-radio-group>


this.newLeaseForm = new FormGroup({
  'emailGroup': new FormControl({ value: this.selectedToAdd }),
  'emailList': new FormControl({ value: this.selectedToRemove }),
  'remarks': new FormControl({ value: this.remarks }),
  ['myControl']: new FormControl({ value: this.selectedBU.BusinessUnitId }, Validators.required),
  'formType': new FormControl(null, Validators.requiredTrue),

新租约
新地租
this.newLeaseForm=新表单组({
“emailGroup”:新的FormControl({value:this.selectedLoadd}),
“emailList”:新建FormControl({value:this.selectedToRemove}),
“备注”:新的FormControl({value:this.rements}),
['myControl']:新FormControl({value:this.selectedBU.BusinessUnitId},Validators.required),
“formType”:新的FormControl(null,Validators.requiredTrue),

Hi,遇到同样的问题,正在寻找解决方案。如果我找到了,我会发回。Angular 7也一样。真的是Angular Material团队吗?