JSFiddle - React, Tailwind, and code Playground

by gmdavis62

HTML

<!-- This is an attempt to bind individual textarea lines to unordered list items -->
<div ng-app="" ng-controller="personController" ng-init="listItems=['One','Two','Three']">

    list: <textarea type="text" ng-model="listItems"></textarea>
<br>
<ul>
  <li ng-repeat="x in itemList">
    {{ x.itemList }}
  </li>
</ul>

</div>

<script>
function personController($scope) {
    $scope.itemList = function() {
        return $scope.listItems.val().split('\n');
    }
}
</script>