我从这里举了个例子:和get errors:没有针对ngModel和ngForm的指令。似乎没有包含指令。ERROR Error: Uncaught (in promise): Error: Template parse errors: There is no directive with "exportAs" set to "NgForm" ("<form (ngSubmit)
但是从ngForm或ngModel中没有一个像预期的那样工作。显示给我的错误是: " error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input' " &
" Thereis no directive with 'exportAs' se
尝试测试LoginComponent时出现以下错误Failed: Uncaught (in promise): Error: Template parse errors:
There is no directive with "exportAs" set to "ngForm" ("iv class=&qu
我已经包含了FormsModule,但它显示了错误。There is no directive with “exportAs” set to “ngForm” import { Component } fromtext" name="name" [(ngModel)]="name" />
<input type="password" name="
在我的ngForm文件中使用template.Other文件时,我遇到了问题,但是当我在本地主机中打开寄存器文件时,控制台中出现了一个错误,因为模板解析错误:没有将"exportAs“设置为"ng-form”的指令(“col xs-12 col 10 col 8 col 1 col偏移量-2”>)#f=“ng-form”>#f=“ng-form”>
<d