JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<body>
<p>Change the value of the input field:</p>
<div ng-app="" ng-init="myCol='red'">
<input style="background-color:{{myCol}}" ng-model="myCol" value="{{myCol}}">
</div>
<p>Return background-color by input field</p>
</body>
</html>