-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Empty scope spans created by ng-transclude #1293
Comments
Same as #1059, I think. |
It seems that ng-trasnclude is adding spans again in Angular 1.5.8. Works fine in 1.5.7 |
@stefanFruuu, can you provide a reproduction (e.g. a live demo using CodePen, Plnkr etc)? |
|
@stefanFruuu, indeed there is a difference. It has been introduced in 1.5.8 by 159a68e. Previously, any fallback content was compiled as part of the parent template (even if that content would not be used). With 159a68e the fallback content will be compiled separately and only if necessary. A side effect of this separate compilation is that the fallback content is now treated as a template root and root text nodes are wrapped in In 1.6.x there will be no extra @stefanFruuu, could you create a separate issue to track that regression? |
Thanks for explanation! I've created new issue: #15223 |
Please read this:
https://groups.google.com/forum/?fromgroups=#!topic/angular/5SaF085FANw
Bottom line is that ng-transclude in directive templates creates spans with class="ng-scope" which breaks the layout.
The text was updated successfully, but these errors were encountered: