2016-09-13 3 views
1

비슷한 스레드를 이미 검색하고 해결책을 확인했지만 문제가 해결되지 않았습니다. 다음과 같이Angular2 RC5 - 두 번 제출하는 양식

나는 양식을 가지고 :

<form *ngIf="_formActive" (ngSubmit)="markAsResolved()" [formGroup]="form"> 

...Form bits and bobs go here 

    <div class="row"> 
     <div class="col-xs-12 col-sm-offset-4 col-sm-4"> 
     <button type="submit" class="app-button" 
     [disabled]="!form.valid" style="width:100%;"> 
      Submit 
     </button> 
     </div> 
    </div> 
    </form> 
문제의 구성 요소는 다음과 같은 가져 오는

:

import {FormGroup, FormControl, FormBuilder, Validators} from '@angular/forms' 

을 그리고 내가 RC5에있어 이후, 나의 app.module.ts로드는 다음과 같다

import {FormsModule, ReactiveFormsModule, disableDeprecatedForms, provideForms} from '@angular/forms'; 

@NgModule({ 
imports: [FormsModule, ReactiveFormsModule], 
declarations: [ ... ], 
bootstrap: [ AppComponent ], 
providers: [disableDeprecatedForms(), provideForms() 
]}) 

disableDeprecatedForms()을 추가하면 provideForms()은 고정되어 있습니다. 이것은 다른 사람들을위한 것이지만 내 경우에는 그렇지 않습니다. 아무도 내가 잘못 가고있는 아이디어가 있습니까?

답변

0

최종 릴리스로 업그레이드하고 사용되지 않는 모든 인스턴스가 제거되었는지 확인한 것 같습니다.

관련 문제