JSFiddle - React, Tailwind, and code Playground
by Daniel Lamb
HTML
<div ng-app="myApp">
<form ng-controller="Example" ng-submit="submited()">
<button type="submit">Submit form</button>
form submit count {{count}}
</form>
</div>
JavaScript
angular.module('myApp', [])
.controller('Example', ['$scope', function ($scope) {
$scope.count = 0;
$scope.submited = function () {
$scope.count++;
}
}]);