angular-cn/packages/core/schematics/migrations
Paul Gschwendtner 5557dec120 refactor(core): missing-injectable migration should respect providers of directives and components (#33011)
Currenly the `missing-injectable` migration only migrates providers referenced from
`@NgModule` definitions. The schematic currently does not cover the migration for
providers referenced in `@Directive` or `@Component` definitions.

We need to handle the following keys for directives/components:

- `@Directive` -> `providers`
- `@Component` -> `providers` and `viewProviders`.

This commit ensures that the migration handles providers for these
definitions.

PR Close #33011
2019-10-14 20:24:01 +00:00
..
dynamic-queries refactor(core): add `createMigrationCompilerHost` (#32827) 2019-10-04 11:45:35 -07:00
google3 refactor(core): missing-injectable migration should respect providers of directives and components (#33011) 2019-10-14 20:24:01 +00:00
missing-injectable refactor(core): missing-injectable migration should respect providers of directives and components (#33011) 2019-10-14 20:24:01 +00:00
move-document refactor(core): add `createMigrationCompilerHost` (#32827) 2019-10-04 11:45:35 -07:00
renderer-to-renderer2 refactor(core): add `createMigrationCompilerHost` (#32827) 2019-10-04 11:45:35 -07:00
static-queries refactor: re-enable dynamic queries migration (#32992) 2019-10-04 13:54:09 -07:00
template-var-assignment refactor(core): add `createMigrationCompilerHost` (#32827) 2019-10-04 11:45:35 -07:00
undecorated-classes-with-decorated-fields refactor(core): add `createMigrationCompilerHost` (#32827) 2019-10-04 11:45:35 -07:00
undecorated-classes-with-di refactor(core): add `createMigrationCompilerHost` (#32827) 2019-10-04 11:45:35 -07:00