JSFiddle - React, Tailwind, and code Playground
by georeith
HTML
<script src="https://code.angularjs.org/1.2.17/angular.js"></script>
<script src="https://code.angularjs.org/1.2.17/angular-animate.min.js"></script>
<test></test>
CSS
html, body {
width: 100%;
height: 100%;
}
.test {
width: 100%;
height: 100%;
background: #000;
}
JavaScript
var app = angular.module('app', ['ngAnimate']);
app.directive('test', function() {
return {
restrict: 'E',
replace: true,
template: '<div class="test"></div>',
controller: 'TestCtrl'
};
});