Using ng-class with Select

Today, I wanted to bind value from a select to a span. Depending on the value selected the color of the label was supposed to be different.

Using AngularJS, I introduced ng-class="". It allows you to change classes conditionally. This is an example:

Leave Comment

Your email address will not be published.

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box