JSFiddle - React, Tailwind, and code Playground
by Luis Perez
HTML
<div ng-controller="MyController">
You clicked the button {{clickCount}} times.<br/>
<button ng-click="userClick()">Click me!</button>
</div>
JavaScript
angular.module("MyModule", [])
.controller("MyController", function($scope) {
$scope.clickCount = 0;
$scope.userClick = function() {
$scope.clickCount++;
};
});