oluşturduğum bir ControlGrouptheForm
. Angular2: Hata - FormBuilder</strong><strong>kullanarak Property 'updateValue' türüne yok 'AbstractControl'
this.theForm.find('MainImageId').updateValue(id, true, true);
gibi bir kontrolün değerini güncellemek çalıştım ama WebStorm yanlış yapıyorum
Error:(148, 24) TS2339: Property 'updateValue' does not exist on type 'AbstractControl'.
söyleyerek bir hata gösteriyor? ve neden çalışıyor?
, WebStorm çalışma zamanı bilgiye sahip değildir. Geri dönüş türünü, 'theForm.find() ' –
Gotcha kaynak kodunda kontrol edin. Bu AbstractControl, gördünüz en açısal GitHub [buradan] (https://github.com/angular/angular/blob/2.0.0-beta.0/modules/angular2/src/common/forms/model.ts#L305-L411) . Ama ne yapmalıyım? –