I have the following code that validates only when the control moves away from the given select element, that is the border of the select element does either red or green only when the given select is tabbed away or the mouse cursor has moved away from the given select element
<select class="form-control input-xsmall select-inline" ng-class="{'invalid': form.year.$dirty && currentYear=='Year', 'valid': form.year.$dirty && currentYear != 'Year'}" data-ng-model="currentYear" name="year">
    <option>Year</option>
    <option ng-repeat="year in years" value="{{year}}">{{year}}</option>
</select>
What could I do to show the user either the green or the red border based on the validity of the select box while he/she is actually setting the value of the option element but has made the select element $dirty or !$pristine.
Could somebody help me with it?
$touchedproperty that you can use, but there isn't anything similar by default in 1.2, although you can make your own directive