angular-cn/packages/core/schematics/migrations
Paul Gschwendtner c24ad560fa feat(core): undecorated-classes migration should handle derived abstract classes (#35339)
In version 10, undecorated base classes that use Angular features need
to be decorated explicitly with `@Directive()`. Additionally, derived
classes of abstract directives need to be decorated.

The migration already handles this for undecorated classes that are
not explicitly decorated, but since in V9, abstract directives can be
used, we also need to handle this for explicitly decorated abstract
directives. e.g.

```
@Directive()
export class Base {...}

// needs to be decorated by migration when updating from v9 to v10
export class Wrapped extends Base {}

@Component(...)
export class Cmp extends Wrapped {}
```

PR Close #35339
2020-04-02 10:51:49 -07:00
..
dynamic-queries refactor(core): update migrations descriptions (#33440) 2019-10-28 17:07:50 -07:00
google3 fix(core): undecorated-classes-with-decorated-fields migration does not decorate derived classes (#35339) 2020-04-02 10:51:48 -07:00
missing-injectable refactor(core): move schematic import manager to shared utils (#35339) 2020-04-02 10:51:48 -07:00
module-with-providers perf(ivy): reuse prior analysis work during incremental builds (#34288) 2019-12-12 13:11:45 -08:00
move-document refactor(core): add `createMigrationCompilerHost` (#32827) 2019-10-04 11:45:35 -07:00
renderer-to-renderer2 fix(core): renderer-to-renderer2 migration not migrating methods (#33571) 2019-11-05 22:05:17 +00:00
static-queries refactor(core): update migrations descriptions (#33440) 2019-10-28 17:07:50 -07:00
template-var-assignment refactor(core): update migrations descriptions (#33440) 2019-10-28 17:07:50 -07:00
undecorated-classes-with-decorated-fields feat(core): undecorated-classes migration should handle derived abstract classes (#35339) 2020-04-02 10:51:49 -07:00
undecorated-classes-with-di refactor(core): move schematic import manager to shared utils (#35339) 2020-04-02 10:51:48 -07:00