JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://cdn.bootcss.com/angular.js/1.3.14/angular.js"></script>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
firstName: <input type="text" ng-model="firstName"></br>
lastName: <input type="text" ng-model="lastName"></br>
fullname:{{firstName +" "+lastName}}</br>
text:{{fullName()}}</br>
</div>
<script>
var app = angular,module('myApp',[]);
app.controller('myCtrl',function($scope){
$scope.firstName = "John";
$scope.lastName = "Doe";
$scope.fullName = function(){
return $scope.firstName + " " + $scope.lastName;
}
});
</script>
</body>