JSFiddle - React, Tailwind, and code Playground

by benweizhu

HTML

<body ng-app="controllerSampleApp">
    <div ng-controller="sampleController">
        first name <input type="text" ng-model="firstName" /><br/>
        last name<input type="text" ng-model="lastName" /><br/>
        my name is {{fullName()}}.
    </div>
</body>

JavaScript

angular.module("controllerSampleApp", [])

.controller("sampleController", function ($scope) {
    $scope.fullName = function () {
        return $scope.firstName + " " + $scope.lastName;
    };
});