JSFiddle - React, Tailwind, and code Playground

by Edward Tanguay

HTML

<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<div ng-controller="MyCtrl">
    <div>Angular is counting: {{counter}}</div>
    <button ng-click="processFiles()">processFiles</button>
    <div>{{message}}</div>
</div>

CSS

body {
    padding: 30px;
}

JavaScript

var myApp = angular.module('myApp',[]);

function MyCtrl($scope, $interval) {
    
    var theTimer = $interval(function () {
        $scope.counter++;
    }, 3000);			

    $scope.counter = 0;
    $scope.message = 'click button';

    $scope.processFiles = function() {
        alert('ok');
    }
}