Skip to content

Instantly share code, notes, and snippets.

@sulco
Last active September 3, 2015 12:37
Show Gist options
  • Save sulco/2298f2cf3852eb97a6c7 to your computer and use it in GitHub Desktop.
Save sulco/2298f2cf3852eb97a6c7 to your computer and use it in GitHub Desktop.
include /angular_jade_form_mixins.jade
form(name='registration')
.form-group
+field-text('Username')(name='username', ng-model='user.username', ng-minlength='3', required='')
+field-errors('registration.username')
ng-message(when='required') Username is required
ng-message(when='minlength') Username must be at least 3 characters long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment