Skip to content

Instantly share code, notes, and snippets.

@thekarel
Created October 26, 2013 05:20
Show Gist options
  • Save thekarel/7165569 to your computer and use it in GitHub Desktop.
Save thekarel/7165569 to your computer and use it in GitHub Desktop.
Angular form validation: class of parent based on child status
<div class="grp" ng-class="{passed: (theForm.fname.$dirty && theForm.fname.$valid) }">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment