JSFiddle - React, Tailwind, and code Playground

by dingen2010

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script>
    //debugger;
    // Create a new module
    var app = angular.module("myModule", []);

    app.controller("appcontrl", function($scope) {
        $scope.Loadmoretweets = function() {
            alert('load more tweets');
        }
    });

    app.directive("enter", function() {
        return function(scope, element,attr) {
            element.bind("mouseenter", function() {
                scope.$apply(attr.enter);
            });
        }
    });
</script>
<div ng-app="myModule" ng-controller="appcontrl">
    <mydir enter="Loadmoretweets()">hier</mydir>
</div>