JSFiddle - React, Tailwind, and code Playground

HTML

<body ng-app="textApp">
    <div ng-controller="textController">
        <input type="text" ng-model="name" /> {{name}}
    </div>
</body>

JavaScript

/* angular.module('restApp', [])

    .factory('personRest', function () {

        return 'sssss'

    }); */

angular.module('textApp', ['restApp'])

    .controller('textController', function ($scope,personRest) {
        $scope.name = 'Benwei';
        //alert(personRest());
    });