Last active
September 3, 2015 12:37
-
-
Save sulco/95ab6498925e19b765dd to your computer and use it in GitHub Desktop.
This file contains 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
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