Can you help me with my problem? I have some html-template
<div>
<div some-directive="scopevar" some-param="scopevar2"></div>
{{scopevar3}}
</div>
some-directive - is another directive and have some template and logic. What i need - is get ready-for-print html, without any binding etc. What i've done:
var html = $templateCache.get(templateUrl);
var element = $compile(html )(scope)
var interpolated = $interpolate(element [0].innerHTML)(scope);
This code return string, but some-directive is not compiled:
<div some-directive="scopevar" some-param="scopevar2"></div>
Here is a plunker example: http://plnkr.co/edit/VSAihut91s06oEpScKQA?p=preview
So i need get the string like after click insert. Thanks!