angular-docs-cn/packages/examples/upgrade/static/ts/lite
George Kalpakas 93837e9545 feat(upgrade): support downgrading multiple modules (#26217)
Currently, calling `downgradeModule()` more than once is not supported.
If one wants to downgrade multiple Angular modules, they can create a
"super-module" that imports all the rest and downgrade that.

This commit adds support for downgrading multiple Angular modules. If
multiple modules are downgraded, then one must explicitly specify the
downgraded module that each downgraded component or injectable belongs
to, when calling `downgradeComponent()` and `downgradeInjectable()`
respectively.

No modification is needed (i.e. there is no need to specify a module for
downgraded components and injectables), if an app is not using
`downgradeModule()` or if there is only one downgraded Angular module.

Fixes #26062

PR Close #26217
2018-11-05 16:33:55 -08:00
..
e2e_test build: upgrade jasmine (and related typings) to latest version (#19904) 2018-07-06 13:48:02 -07:00
module.ts feat(upgrade): support downgrading multiple modules (#26217) 2018-11-05 16:33:55 -08:00
styles.css docs(upgrade): add API docs for `downgradeModule()` (#18487) (#18487) 2018-06-27 15:01:47 -07:00