Transclude

by Jscaptcha

HTML

<div ng-app='myApp'>
    <div ng-controller='myCtrl'>
        <panel>
            <button>ok</button>
        </panel>
    </div>    
</div>

JavaScript

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

app.controller('myCtrl', function ($scope) {
});

app.directive('panel', function () {
    return {
        restrict: 'E',
        transclude: true,
        template: '<div ng-transclude>button will not display without transclusion</div>'        
    };
});