Hi I'm using Angular with Twitter Bootstrap. I want to trigger the has-error class with one of the two errors. But neither:
<div class="form-group" ng-class="{'has-error' : errorTime, 'has-error' : errorDate}">
nor:
<div class="form-group" ng-class="{'has-error' : errorTime, errorDate}">
does work.
I thought it would work like this Adding multiple class using ng-class
On the first solution it ignores the second parameter. So if the first is true it triggers has-error no matter what the second parameter is. (I switched them in the code)