angular-cn/packages/upgrade/src
George Kalpakas 13ab91e05d fix(upgrade): fix empty transclusion content with AngularJS@>=1.5.8 (#22167)
The function provided by `ngUpgrade` as `parentBoundTranscludeFn` when
upgrading a component with transclusion, will break in AngularJS v1.5.8+
if no transclusion content is provided. The reason is that AngularJS
will try to destroy the transclusion scope (which would not be needed
any more). But since the transcluded content comes from Angular, not
AngularJS, there is no transclusion scope to destroy.
This commit fixes it by providing a dummy scope object with a no-op
`$destroy()` method.

Fixes #22175

PR Close #22167
2018-02-25 10:06:14 -08:00
..
common fix(upgrade): fix empty transclusion content with AngularJS@>=1.5.8 (#22167) 2018-02-25 10:06:14 -08:00
dynamic fix(upgrade): correctly handle `=` bindings in `@angular/upgrade` (#22167) 2018-02-25 10:06:14 -08:00
static fix: Update test code to type-check under TS 2.5 (#20175) 2017-11-15 18:12:16 -06:00