私が作成したControlGrouptheForm
。 Angular2:エラー - FormBuilder</strong><strong>を使用してプロパティ 'updateValue' タイプに存在しません 'AbstractControl'
this.theForm.find('MainImageId').updateValue(id, true, true);
のようなコントロールの値を更新しようとしたときが、WebStormは私が間違っているのは何
Error:(148, 24) TS2339: Property 'updateValue' does not exist on type 'AbstractControl'.
というエラーが表示さ?それはなぜ機能するのですか?
実行時にWebStormに実行時情報がありません。 'theForm.find()'のソースコードの戻り値の型を確認してください –
Gotcha。 AbstractControlです。角度のgitHub [here](https://github.com/angular/angular/blob/2.0.0-β0/modules/angular2/src/common/forms/model.ts#L305-L411)を参照してください。 。 しかし、どうすればいいですか? –