JSFiddle - React, Tailwind, and code Playground

by silvajeff

HTML

<div ng-app>
    <div ng-controller='ctrl'>
        <div class="big">Item 1</div>
        <div class="small" ng-class="myVar">Item 2</div>
</div>
    <button type="button" ng-click="myVar='active'">Add Class</button>
    <button type="button" ng-click="myVar=''">Remove Class</button>

CSS

.big{
  color:black;
}
.small{
  color:green;
}

.active{
    background-color:yellow;
}

JavaScript

function ctrl($scope){
  

    
}