Hi

I've got this code...

<span class="input-label" ng-class="{'add.prisfel':error}">Pris</span>
    <input type="text" ng-model='add.pris'  ng-keyup="add.priskontroll()">

  </label>
{{add.prisfel}}

In the function priskontroll I set the var add.prisfel. It works and it 
returns true or false based upon the entered value. However the class error 
is not added to the input span. /the error class is defined as a local 
class in the css file. It works when tested outside the ng-class.


-- 
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.

Reply via email to