JSFiddle - React, Tailwind, and code Playground

by badge2033

HTML

<script src="http://code.angularjs.org/1.1.3/angular.js"></script>
<div ng-controller="MyCtrl">

    <div my-directive>
        <button>some button</button>
        <a href="#">and a link</a>
    </div>
</div>

JavaScript

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

function MyCtrl($scope) {
    $scope.log=[];   
}

myApp.directive('myDirective', function(){
	return{
		transclude: true,
		template: '<div class="something" ng-transclude> This is my directive content</div>'
	}
});