JSFiddle - React, Tailwind, and code Playground

by Daniel Lizik

HTML

<div ng-app="myApp" ng-controller="myCtrl">
    <div test1 test2> </div>
</div>

JavaScript

var myApp = angular.module('myApp', []);
myApp.factory('aProvider', function() {
   console.log("factory");
});

myApp.directive("test1", function() {
    console.log("directive setup");
    return {
        compile: function() {console.log("directive compile");}
    }
});

myApp.directive("test2", function() {
    return {
        link: function() {console.log("directive link");}
    }
});

myApp.run(function() {
    console.log("app run no delay");
    setTimeout(function() {
    	console.log('app run 1000')
    }, 1000)
});

myApp.config( function() {
    console.log("app config");
});

myApp.controller('myCtrl', function($scope) {
    console.log("app controller");
});