JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="myApp">
<div ng-controller="MyCtrl">
<form name="thingForm">
        <label>
          Name of thing       
        <input required type="text" ng-model="thing.name"/>
        </label><br/>
        <label>
          Value of thing       
        <input required type="text" ng-model="thing.value"/>
        </label><br/>
        <input type="submit" ng-click="addThing(thing)"/>
      </form>
    <ul>
      <li ng-repeat="thing in things">{{thing.name}} with value of {{thing.value}}</li>
    </ul>
</div>
</div>

CSS

input.ng-dirty.ng-invalid {
    background-color: red;
}
input[required].ng-pristine {
    background-color: yellow;
}
input[required].ng-dirty.ng-valid {
    background-color: green;
    color: white;
}

JavaScript

var myApp = angular.module('myApp', []);

function MyCtrl($scope) {
    $scope.things = [];
    $scope.addThing = function(thing) {
        $scope.things.push(thing);
        $scope.thing = {};
    };
}