Created
September 9, 2014 21:51
-
-
Save molekilla/90c0ac36b1f0d56569fc to your computer and use it in GitHub Desktop.
ng-messages.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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