JSFiddle - React, Tailwind, and code Playground
HTML
<body ng-app="diApp">
<div ng-controller="diController">
<input type="text" ng-model="alertValue" />
<input type="button" ng-click="alertMe()" value="clickMe" />
</div>
</body>
JavaScript
angular.module('diApp', [])
.controller('diController', function ($scope, $window) {
$scope.alertMe = function () {
$window.alert($scope.alertValue);
};
});