JSFiddle - React, Tailwind, and code Playground

by Warspawn

HTML

<div ng-app="app">
  <div transclude-test>Herman</div>
</div>

JavaScript

var app = angular.module('app', []);

app.directive('transcludeTest', function($log) {
  return {
    transclude: true,
    template: '<a href="javascript://"></a>',
    compile: function(el, attrs, transclude) {
      transclude(function(clone) {
        el.append(clone);
      });
    }
  };
});