UI Deploy

Curated, Short, Web UI Dev we Love.

Easy Form Validation in AngularJS with ngMessages

Last fall, the ngMessages module was rolled out with the release of Angular 1.3. This added enhanced support for displaying messages to the user — typically error messages from form validation. Before the release of ngMessages, developers were forced to rely on directives such as ng-class and ng-show to display these errors. This resulted in cluttered, repetitive code.

view source

Advertisement