-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation #343
Comments
See also #11 |
Side note: Sir @mlynch is working on the popup. |
FYI @mlynch @adamdbradley I have found an unobtrusive way of doing it while supporting angular's built-in $valid, required, ng-pattern, etc... see
It also only validates on submit... |
Cool! @bensperry whatcha think? |
+1 |
I use something like this:
|
Looks interesting. I don't love the solution of adding |
In a framework, I agree. |
So what's wrong with using angular: <form name="myForm">
<input name="myInput" required>
<div ng-show="myForm.myInput.$error">Error!</div>
</form> |
This one reacts only when the user has tried to submit the form once... goes with |
@adamdbradley we should have a form of mask included as well... |
Moving feature requests from GH Issues to Trello. Please continue the discussion and vote for this and other issues that are important to you here: |
In case you don't know : Angular 1.3 introduces a lot of new features for form http://www.yearofmoo.com/2014/09/taming-forms-in-angularjs-1-3.html |
Note, we plan to move to Angular 1.3 shortly after the 1.0 |
Any news on the validation stuff? |
see this excellent post: https://calendee.com/2014/12/26/validation-in-ionic-framework-apps-with-ngmessages/ |
I love it! Great adaptation of my original validation!! |
Hi, as an alternative I would like to suggest using Angular-auto-validate: http://jonsamwell.github.io/angular-auto-validate/ The error messages are dynamic, so for example for max/min length the message replaces the numeric values, without having to declare each message on every field, in fact the HTML template would be clean for any validation/error markups, just the form fields. Additionally the controller no longer requires to validate the form's state, because the library won't let the form to be submitted. It even supports i18n, message customization and validation onBlur or onChange (default). Although this library was developed to be use with Bootstrap or Fundation, I have a working example with Ionic here: http://codepen.io/gvarela/pen/KwJdEN Hope it helps 😄 |
guillermo-varela http://wenxuebu.com/robot-instaforex 24.03.2015, 01:36, "guillermo-varela" notifications@github.com:Hi, as an alternative I would like to suggest using Angular-auto-validate: The error messages are dynamic, so for example for max/min length the message replaces the numeric values, without having to declare each message on every field, in fact the HTML template would be clean for any validation/error markups, just the form fields. Additionally the controller no longer requires to validate the form's state, because the library won't let the form to be submitted. It even supports i18n, message customization and validation onBlur or onChange (default). Although this library was developed to be use with Bootstrap or Fundation, I have a working example with Ionic here: Hope it helps —Reply to this email directly or . |
@adamdbradley looks like you guys have some spam in this issue. ^ |
http://forum.ionicframework.com/t/how-to-mask-an-input-field-for-mobile-number/274/2
The text was updated successfully, but these errors were encountered: