I would like to create a directive that replaces :
<my-overlay class="someOverlay">
<h4>Coucouc</h4>
</my-map-overlay>
With :
<div class="someOverlay default-overlay">
<h4>Coucouc</h4>
</div>
The replace method is yet deprecated.
How to write a directive that manipules the DOM creating a div, adds the default-overlay class to the previous defined one, transcludes and replaces the <my-map> directive ?
Is it possible to divide the process as following : DOM manipulation in compile and transcluding in link?
myOverlaydirective to be an element? Can you not restrict it to an attribute?