If the snippet contains nodes that have a transcluding directive, rootElement and rootElements will point to the wrong instance of those nodes (pre-transcluded).
<component ng-if="..."></component> will point to the unexpanded instance of this and not to the one that gets inserted after the call to leap().
Suggestion:
Use rootView and flatten the insertion points and put these into rootElement and rootElements?
If the snippet contains nodes that have a transcluding directive, rootElement and rootElements will point to the wrong instance of those nodes (pre-transcluded).
<component ng-if="..."></component>
will point to the unexpanded instance of this and not to the one that gets inserted after the call toleap()
.Suggestion: Use
rootView
and flatten the insertion points and put these into rootElement and rootElements?