angular-cn/packages/core/schematics/utils
Paul Gschwendtner 4e8c2c3422 refactor(core): static-query schematic should handle abstract classes (#29688)
Queries can not only be accessed within derived classes, but also in
the super class through abstract methods. e.g.

```
abstract class BaseClass {

  abstract getEmbeddedForm(): NgForm {}

  ngOnInit() {
     this.getEmbeddedForm().doSomething();
  }
}

class Subclass extends BaseClass {
  @ViewChild(NgForm) form: NgForm;

  getEmbeddedForm() { return this.form; }

}
```

Same applies for abstract properties which are implemented in the base class
through accessors. This case is also now handled by the schematic.

Resolves FW-1213

PR Close #29688
2019-04-10 12:15:05 -07:00
..
tslint feat(core): template-var-assignment update schematic (#29608) 2019-04-02 15:47:32 -07:00
typescript refactor(core): static-query schematic should handle abstract classes (#29688) 2019-04-10 12:15:05 -07:00
BUILD.bazel refactor(core): add tslint rule entry-point for static-query migration (#29258) 2019-03-14 16:02:37 -04:00
line_mappings.ts feat(core): template-var-assignment update schematic (#29608) 2019-04-02 15:47:32 -07:00
ng_decorators.ts feat(core): template-var-assignment update schematic (#29608) 2019-04-02 15:47:32 -07:00
project_tsconfig_paths.ts refactor(core): static-query schematic should not run multiple times (#29133) 2019-03-12 12:28:14 -07:00