angular.dart icon indicating copy to clipboard operation
angular.dart copied to clipboard

TestBed's `compile()` does not support transclusion

Open BlackHC opened this issue 10 years ago • 0 comments

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?

BlackHC avatar Mar 01 '15 20:03 BlackHC