Better AngularJS Validation with ngMessages

A tutorial by Scotch.io

Your name is too short.

Your name is too long.

Your name is required.

This field is required

This field is too short

This field is too long

This field is required

This needs to be a valid email

userForm.name.$error = {{ userForm.name.$error | json }}