I have been trying to use transclusion to create a directive which makes two copies of it\'s contents and appends them inside the original template. I have failed in my atte
This plunker was prior to Angular 1.5 which introduce Tranclusion.
link: function(scope, element) { if (!element.find('ng-transclude').children().length) { element.find('button').append('Button1'); } }
Plunker