Ionic-Material icon indicating copy to clipboard operation
Ionic-Material copied to clipboard

Form validation

Open Exegetech opened this issue 9 years ago • 3 comments

Hi,

Does Ionic Material includes form validation component in its forms?

Exegetech avatar Nov 18 '15 20:11 Exegetech

It doesn't have to. It's already in AngularJS (search for AngularJS form validation on the internet).

kashban avatar Nov 26 '15 16:11 kashban

The issue here is input validation. When trying to use a custom function, ui-validate or roll your own, the validation function is attached to the label not the input field.

tuckerjt07 avatar Dec 17 '15 23:12 tuckerjt07

If you want, you can use the angular NgMessages.

https://docs.angularjs.org/api/ngMessages/directive/ngMessages

Ps: I only don't recommend, if you are using Modal (IonicModal).

rhenter avatar Mar 28 '16 16:03 rhenter