ERROR in src/app/Register/register.component.html:12:9 - error NG8002: Can't bind to 'ngModel' sinceit isn't a known property of 'input'.
~~~~~~~~~~这个错误一直在发生--我已经检查了所有</em
我知道之前有人问过这个问题,但是所有的解决方案都是关于从@angular/forms导入FormsModule和ReactiveFormsModule的,但实际上我已经这样做了,并将它们添加到导入中,但是从ngForm或ngModel中没有一个像预期的那样工作。is no directive with 'exportAs' set to 'ngForm
\node_modules\@angular\compiler\bundles\compiler.umd.js:17952:24) at ...\node_modules\@angular\compiler\bundles\compiler.umd.js:17014:60)
at ...\node_modules\@angular\compiler\bundl