这个plunker在Firefox中工作,没有任何控制台错误,但在Chrome中我收到消息:
formcontrol出错
<ul>
<li *ngFor="let item of data">
<label>
<input type="radio" name="radio1"
[value]="item.id"
[formControl]="childControl"
(input)="fn($event.target.value)" >
<p>{{ item.title }}</p>
</label>
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
找不到具有未指定名称属性的控件