JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="app">
    <div ng-controller="ctrl">
        <form name="myForm" ng-submit="sub()" novalidate>                    
            <div ng-repeat="item in items">
                <ng-form name="row">
                    <input type="text" name="value" ng-model="item.value" required />                    
                </ng-form>
            </div>         
            <button ng-click="addItem()">Add Item</button>        
            <input type="submit" value="Submit"/>
        </form>
    </div>
</div>

JavaScript

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

        app.controller('ctrl', ['$scope', function($scope) {

            $scope.items = [];
            $scope.addItem = function() {
                $scope.items.push({ value: $scope.items.length });
            };

            $scope.sub = function() {
                alert("submitted?");
            };
        }]);