I am trying to use the ionic framework with angular.I want to do validation of my form on button click.Mean I need to validate all field on button click.All field are required ..I need to show an error message if a field does not fulfil the requirement. Like password minimum character 5 and maximum 10. And email validation.
could you please tell m how I will do validation.Here is my code
<html ng-app=>
<head>
<meta charset=utf-8>
<meta name=viewport content=initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width>
<title>Sign-in, Then Tabs Example</title>
<link href=//code.ionicframework.com/nightly/css/ionic.css rel=stylesheet>
<script src=//code.ionicframework.com/nightly/js/ionic.bundle.js></script>
</head>
<body>
<ion-view title=Page>
<ion-content padding=true class=has-header has-footer>
<form>
<label class=item item-input>
<span class=input-label>name</span>
<input type=text placeholder=name>
</label>
<label class=item item-input>
<span class=input-label>email</span>
<input type=email placeholder=email>
</label>
<label class=item item-input>
<span class=input-label>password</span>
<input type=password placeholder=password>
</label>
</form>
<button class=button button-balanced button-block>check validation</button>
</ion-content>
</ion-view>
</body>
</html>