Is there a way to extract the HTML content of a directive prior to compilation?
For instance, consider the following:
<my-directive>
<ul>
<li ng-repeat="item in items">{{item.label}}</li>
</ul>
</my-directive>
I aim to retrieve all the content within my-directive
, remove it, and utilize it elsewhere (Not inside the directive itself)
In essence, I am looking for a method to access the DOM of the directive, make modifications, and then proceed with compilation.