How to highlight tabs that contain fields with .has-error class (angular ui-bootstrap)

i’m using tabs directives in my template file (all tabs are defined there). Each tab contains several fileds that belongs to form (this single form fields are splitted into several tabs). When the whole form is validated some fields might get class ‘.has-error’. How can i highlight (give special backgorund color) only those tabs that contain fields with ‘.has-error’ class inside related tab content?

Source: forms

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.