Is it possible to programmatically get the original transcluded content within an Angular.js directive?
I\'m trying to create an an editable directive
editable
You can use transclude function:
.directive('editable', function() { return { transclude: true, link: function(scope, element, attrs, ctrl, transclude) { transclude(scope, function(clone) { // clone is your transluded content }); } }; });