【发布时间】:2023-03-15 15:57:01
【问题描述】:
我刚开始使用 Angular2,这是我的第一个项目。
https://github.com/Exlord/angular2-sample-dynamicform
这在开发中运行良好,但当我尝试 ng build --prod 时,我收到此错误:ERROR in ng:///E:/www/ng2-sample/src/app/field/field-form/field-form.component.html (2,26): Supplied parameters do not match any signature of call target.
错误是指this line
<div class="form-group" [ngClass]="{'has-error':!form.get('name').valid && form.get('name').touched}">
我几天前安装了 angular2+cli,所以我认为一切都是最新的。
我错过了什么?这是什么意思?
【问题讨论】: