I have a custom directive for a reusable form component:
<my-numeric-input label="doo" min="mins.doo" ></my-numeric-input>
<my-numeric-input label="bar" min="mins.bar" ></my-numeric-input>
When I interact with this I can see Angular sets/unsets the ng-touched
class on the embed INPUTs.
But it does not change the class on the my-numeric-input element in the
DOM, so I can't write CSS rules like
my-numeric-input.$touched {
background:blue;
}
How do I get the touched status to go up to the parent element ?
Tom
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.