I'm creating a <row>
AngularJS directive that needs to replace itself (the <row>
tag must not be present in the DOM after execution) with a dynamic template that can contain any HTML code.
The problem in using replace: true
is that it does not work with table's tags and that the template is dynamically chosen.
So I'm trying to find a way to replace the element in the linking function, with no success.
Using jQuery's .replaceWith()
breaks ngRepeat
s for unknown reason.
Any hints ?
Here is the fiddle