Hello, I have a special need to generate the html code of a directive with while changing only a few scope properties but without changing the code actually displayed. I need this to be only virtual. The result would then be parsed and deleted.
I tried to use $compile but the result is not what I expect as the final html code is not rendered (values are not bind). For exemple if I have an ng-if on an element, then I only have the comment tag even if the required conditions are set in the scope used in the compile function. But if I append the compiled result to the page, then I have the expected result. I'm not sure if it's very clear but this is the steps I'm looking for : 1. duplicate scope (I'm not sure how to do this) 2. compile the html and apply the scope 3. retrive the rendered html as if it was added to the page 4. clean up if needed ? Thanks a lot. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
