Get original transcluded content within angular directive Get original transcluded content within angular directive angularjs angularjs

Get original transcluded content within angular directive


The $element.innerHTML should contain the original HTML. I am showing that it contains

  <div class="editable">  <span class="glyphicon glyphicon-edit" ng-click="toggleEditor()"></span>    <div class="editable-input" ng-show="showEditor">       <b><p>Enter well-formed HTML content:</p></b>       <p>E.g.<code><h1>Hello</h1><p>some text</p><clock></clock></code></p>       <textarea ng-model="editContent"></textarea>       <button class="btn btn-primary" ng-click="onEdit()">apply</button>    </div>    <div class="editable-output" ng-transclude=""></div>  </div>