JSFiddle - React, Tailwind, and code Playground

by acbabis

HTML

<div ng-app="app" ng-controller="myController">
  theValue is {{theValue}}
  <br>
  <button ng-click="increment()">
    Increment
  </button>
</div>

JavaScript

angular.module('app', []).controller('myController', function($scope) {
  $scope.theValue = 0;

  $scope.increment = function() {
    $scope.theValue++;
  }
});