JSFiddle - React, Tailwind, and code Playground

by leonsaysHi

HTML

<script src="https://code.angularjs.org/1.4.0-beta.6/angular.min.js"></script>
<script src="https://code.angularjs.org/1.2.0/angular-animate.min.js"></script>
<div ng-app="MyApp">
    <div ng-controller="MyCtrl">
        This works ... (https://code.angularjs.org/1.2.0/angular-animate.min.js)
        <p class="animated" ng-show="who">Hello {{who}}.</p>
        .. but won't work if using this release of ngAnimate : https://code.angularjs.org/1.4.0-beta.6/angular-animate.min.js
    </div>
</div>

JavaScript

angular.module('MyApp', ['ngAnimate'])
    .controller('MyCtrl', function ($scope) {
        $scope.who = 'World';
    })
    .animation('.animated', function () {
        // should display an alert here...
        alert('hello ?');
    })
;