dart-archive / angular.dart

Legacy source repository. See github.com/dart-lang/angular
https://webdev.dartlang.org/angular/
1.24k stars 248 forks source link

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

Open BlackHC opened 9 years ago

BlackHC commented 9 years ago

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?