Skip to content

Instantly share code, notes, and snippets.

@sulco
Last active September 3, 2015 12:37
Show Gist options
  • Save sulco/95ab6498925e19b765dd to your computer and use it in GitHub Desktop.
Save sulco/95ab6498925e19b765dd to your computer and use it in GitHub Desktop.
mixin field-text(label)
label(for=attributes.id || attributes.name)= label
input.form-control(id=attributes.id || attributes.name, type='text')&attributes(attributes)
mixin field-errors(field)
ng-messages(for=field + '.$error', ng-show=field + '.$dirty && ' + field + '.$invalid', role='alert')
block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment