Edit in JSFiddle

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>'
	}
});
<div ng-controller="MyCtrl">

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

              
            
          
            
              

External resources loaded into this fiddle: