mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
74cb575219
Previously, downgraded component adapters were compiling and projecting the contents of the template element instead of the link-element. This didn't make any difference is most cases (as the elements are the same), but broke with structural directives (e.g. `ngRepeat`), which compile the orginal (template) element once and then create and link clones of it. This commit fixes it by always compiling and projecting the contents of the correct (link) element. Fixes #14260