Angular2 treats it as a normal form and does nothing:
<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>
I turned on disableDeprecatedForms()and provideForms()in your bootstrap file and the function of the release button works fine, but when I click on it does not work, but the site is reloaded ...
source
share