[英]ERROR Error: No value accessor for form control with unspecified name attribute when bind carousel in angular
how to get value from carousel whhich is active i was try all option如何从激活的轮播中获取价值我尝试了所有选项
<carousel [interval]="false">
<div [(ngModel)]="mseason" value="whole-year" (change)="mchangeSeason()" >
<slide>
<b >whole-year</b>
</slide>
</div>
<div [(ngModel)]="mseason" value="spring" (change)="mchangeSeason()" >
<slide >
<b >spring</b>
</slide >
</div>
</carousel>
The ngModel directive has to be placed in an input not a div. ngModel 指令必须放在输入而不是 div 中。 Also where is the form tag?
表单标签在哪里?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.