JSFiddle - React, Tailwind, and code Playground

by kornieff

HTML

<script src="https://code.angularjs.org/1.4.3/angular.js"></script>
<div ng-app='a' ng-controller='b'>
    <input type="text" ng-repeat="row in rows" ng-model="row.word" ng-model-options="{'updateOn': 'blur'}">
</div>

JavaScript

angular.module('a', []).controller('b', function ($scope) {
    $scope.rows = [{'word': ''}];
    
    $scope.$watch('rows', function (n, o) {
        var last = $scope.rows[$scope.rows.length - 1];
        
        last.word && $scope.rows.push({'word': ''});        
    }, true);
});