angular-cn/modules/@angular/upgrade
Georgios Kalpakas 1367cd9569 fix(upgrade): respect hierarchical injectors for downgraded components (#14037)
Correctly wire up hierarchical injectors for downgraded components in
`upgrade/static`: Downgraded components inherit the injector of the first
downgraded component up the DOM tree.

This is similar to (part of) d91a86a, but for `upgrade/static`.

POSSIBLE BREAKING CHANGE:

In order to enable more control over the wiring of downgraded components and
their content (which eventually allows better control over features like
injector setup and content projection), it was necessary to change the
implementation of the directives generated for downgraed components.

The directives are now terminal and manually take care of projecting and
compiling their contents in the post-linking function. This is similar to how
the dynamic version of `upgrade` does it.

This is not expected to affect apps, since the relative order of individual
operations is preserved. Still, it is difficult to predict how every possible
usecase may be affected.
2017-02-01 09:29:51 -06:00
..
src fix(upgrade): respect hierarchical injectors for downgraded components (#14037) 2017-02-01 09:29:51 -06:00
test fix(upgrade): respect hierarchical injectors for downgraded components (#14037) 2017-02-01 09:29:51 -06:00
index.ts feat(upgrade): return a function (instead of array) from `downgradeInjectable()` (#14037) 2017-02-01 09:29:51 -06:00
package.json docs: update descriptions in package.jsons 2016-09-14 16:44:39 -07:00
rollup-static.config.js refactor(upgrade): re-export the new static upgrade APIs on new entry 2016-10-26 15:14:22 -07:00
rollup.config.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
static.ts feat(upgrade): allow non-element selectors for downgraded components (#14037) 2017-02-01 09:29:51 -06:00
tsconfig-build.json feature(tsc-wrapped): add option for closure compiler JSDoc annotations 2016-11-18 09:37:40 -08:00