Angular2 정상적인 형태처럼 치료 및 수행되어 아무것도 : 나는 disableDeprecatedForms()
내 부트 스트랩 파일 provideForms()
과의 비활성화 기능을 포함Angular2 양식 대신 onSubmit를 호출 다시로드()
<form (ngSubmit)="onSubmit(f.value, $event)" #f="ngForm">
<md-card-title>Settings</md-card-title>
<md-card-content>
<p>
<md-input [(ngModel)]="user.username" name="username" required placeholder="Username"
#name="ngModel"></md-input>
</p>
</md-card-content>
<md-card-actions>
<button [disabled]="!f.form.valid" type="submit" md-raised-button color="accent">Save</button>
</md-card-actions>
버튼이 제대로 작동하지만 버튼을 클릭하면 기능이 작동하지 않지만 사이트가 다시로드됩니다 ...
이 시나리오를 어떻게 피하는 것이 좋습니다? –