Skip to content

Instantly share code, notes, and snippets.

@molekilla
Created September 9, 2014 21:51
Show Gist options
  • Save molekilla/90c0ac36b1f0d56569fc to your computer and use it in GitHub Desktop.
Save molekilla/90c0ac36b1f0d56569fc to your computer and use it in GitHub Desktop.
ng-messages.js
<!-- parcialmente basado en yearofmoo.com -->
<form name="formulario">
<div class="field">
<label for="correo">Correo Electronico:</label>
<input type="email"
name="correo"
ng-model="datos.email"
required />
<div ng-messages="formulario.correo.$error">
<div ng-message="required">Campo requerido</div>
<div ng-message="email">Debe ser un correo electronico.</div>
</div>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment