JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app='hello'>
<div ng-controller='helloCtrl'>
<button ng-click='hello("world")'>hello</button>
</div>
</div>
JavaScript
angular.module("hello", []);
function helloCtrl($scope){
$scope.hello = function(str){
alert("hello, "+ str);
}
}