JSFiddle - React, Tailwind, and code Playground

by Amit Thakkar

HTML

<div ng-app="testdirective">
    <div first>
        <p>aaaaaa11111</p>
    </div>
</div>

JavaScript

var testdirective = angular.module("testdirective",[]);
testdirective.directive('first', function() {
    return {
        transclude: true,
        template: '<div> This is my directive content<span ng-transclude></span></div>'
    }
});