I am trying to use the contents of the transclude directive (the source content of the directive, not the template) as an HTML string template in a grid.
<grid attrs="...">
<action-column-template>...(html I need)...</action-column-template>
</grid>
The idea is that I need the HTML code for the action-column-template (unrelated, not attached to any area).
I do not control the generation of each row, so I cannot manually bind this action template to each area using transclude (rowScope). I just need it as a simple html (ie With "{{}}" and internal directives intact).
Running the transclude () fn function from the link function gives me translated content, but is bound to scope and internal directives. And the html () of the tElem parameter of the compilation function returns the HTML of the directive template, not the content to be translated.
So the question is: can I get content that needs to be converted to directive in my compilers, controllers, preLink or postLink, like uncompiled HTML?
Thank.
cipak source
share