angular-docs-cn/integration/ng_update_migrations/src
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
..
app feat(core): undecorated-classes migration should handle derived abstract classes (#35339) 2020-04-02 10:51:49 -07:00
assets build: create integration test for ng-update migrations (#32349) 2019-08-29 12:34:43 -07:00
environments build: create integration test for ng-update migrations (#32349) 2019-08-29 12:34:43 -07:00
favicon.ico build: create integration test for ng-update migrations (#32349) 2019-08-29 12:34:43 -07:00
index.html build: create integration test for ng-update migrations (#32349) 2019-08-29 12:34:43 -07:00
main.ts build: create integration test for ng-update migrations (#32349) 2019-08-29 12:34:43 -07:00
polyfills.ts build: create integration test for ng-update migrations (#32349) 2019-08-29 12:34:43 -07:00
styles.less build: create integration test for ng-update migrations (#32349) 2019-08-29 12:34:43 -07:00
test.ts build: create integration test for ng-update migrations (#32349) 2019-08-29 12:34:43 -07:00