Using ng-class with Select

Today, I wanted to bind value from a select to a span. Depending on the value selected the colour 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 a comment