我剛開始使用Angular2,這是我的第一個項目。
https://github.com/Exlord/angular2-sample-dynamicformAngular2 ng build --prod error提供的參數與調用目標的任何簽名不匹配
這個工作在開發正常,但當我嘗試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前兩天裝所以我認爲一切都是最新的。
我錯過了什麼?這是什麼意思?
yeay tnx,愚蠢的構建錯誤:D – Exlord