Please do not share this demo with the world, I am really bad at jsfiddle.
Temporary Demo can be found here
Added default required validation message when validation fails for a required field that has become dirty. In addition, there is now an errorMsg that you can specify in the schema.
This behavior is limited to text inputs until I have a better understanding of what I am doing.
##Additional Field Schema
errorMsg
Failed validation message when the input becomes dirty
##Resources that I used a lot
- Original Code
- Updated Code
- Validation tutorial from the folks over at ng-newsletter
- Plenty more that I cannot remember
##Notes
- ng-book is a great resource that I didn't have yet when I added this. I am still not to sure how directives work or if I did anything right. I plan to dive into the book and get my hands dirty
Thanks for the gist @Snugglepantz I've implemented validation and validation messages in the latest version. I implemented it a bit differently, but I think that ultimately it provides for more flexibility.