zachfitz / Ionic-Material

Material Design style and animations for Ionic
http://ionicmaterial.com
Other
2.9k stars 904 forks source link

Form validation #160

Open Exegetech opened 8 years ago

Exegetech commented 8 years ago

Hi,

Does Ionic Material includes form validation component in its forms?

kashban commented 8 years ago

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

tuckerjt07 commented 8 years ago

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.

rhenter commented 8 years ago

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).