here is my home.html file
<ion-header>
<ion-navbar>
<ion-title text-center="true" class="title">Ionic 2 how to validae Form</ion-title>
</ion-navbar>
</ion-header>
<ion-content class="home">
<form (submit)="doLogin">
<div class="form">
<div class="inside-form">
<p class="alert"></p>
<ion-item>
<ion-label floating>Username</ion-label>
<ion-input type="text" required size="50"></ion-input>
</ion-item>
<br><br>
<ion-item>
<ion-label floating>Password</ion-label>
<ion-input type="password" required size="50"></ion-input>
</ion-item>
<br><br>
<button type="submit" (click)="click()">Log in</button>
</div>
</div>
</form>
</ion-content>
And here is home.ts file
import {Component} from '@angular/core';
import { FormBuilder } from '@angular/common'
@Component({
templateUrl: 'build/pages/home/home.html'
})
export class HomePage {
}
Iβm a new learning ionic 2 . Please have me validate this form i create i donβt now how to do is , if somebody now pleas coment . Thank so must !!.
love all you guys!.