incuna / angular-bind-html-compile

Directive that calls $compile on trusted HTML, allowing directives in an API response.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recursive use of bind-html-compile request

alindberg opened this issue · comments

First, thanks to all who have worked on this directive! I works like a charm.

I need to use this in a recursive manner. I am building a table from several data sets and would like to use bind-html-compile in both the 'root' html form, but also in the created forms created by the function serviced by the directive. As an example the 'buildRow' function calls 'buildDetail', each of which requires angular data binding

index.html:

buildRow = function() {
return "{{fooBar}}
}

buildDetail = function() {
return "

{{item}}
";
}