Hi ,
I want to use multiple forms(ngForm) in single page. How to use ? For example
User.html
<form #loginForm="ngForm" novalidate>
<ion-item>
<ion-label stacked color="primary">Username</ion-label>
<ion-input [(ngModel)]="login.username" name="username" type="text" #username="ngModel" spellcheck="false" autocapitalize="off"
required>
</ion-input>
</ion-item>
</form>
<form #registrationForm="ngForm" novalidate>
<ion-item>
<ion-label stacked color="primary">Username</ion-label>
<ion-input [(ngModel)]="registration.username"
name="username" type="text" #username="ngModel" spellcheck="false"
autocapitalize="off"
required>
</ion-input>
</ion-item>
</form>
I am using this two forms in single page but when i summit login form registration forms also getting value automatically. How to i fix this ? How to validate this two forms separately ?