JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app ng-controller="ToDoApp">
<h3>TODO</h3>
<ul>
<li ng-repeat="item in items">{{item}}</li>
</ul>
<form>
<input ng-model="text" />
<button ng-click="add()">Add #{{items.length + 1}}</button>
</form>
</div>
JavaScript
function ToDoApp($scope) {
$scope.items = [];
$scope.add = function() {
$scope.items.push($scope.text);
$scope.text = '';
};
}