带有标签的角度8动态控件

问题描述

在这里,我正在窗体中创建动态控件。控件正在创建,但是我不能给单个标签文本。请帮帮我

   <div [formGroup]="dynamicctrls">
                                <div formArrayName="inptctls">
                                    <mat-form-field appearance="outline" style="width: 350px;" *ngFor='let itmin of inptctls.controls;let i=index'>
                                        <mat-label>Label name</mat-label>
                                        <input type="text" matInput>
                                    </mat-form-field>
                                </div>
                            </div>
 


  dynamicctrls = this.fb.group({
    inptctls: this.fb.array([
      this.fb.control(''),this.fb.control('')
    ])
  });

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)