Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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!

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.