angular-cn/packages/core/schematics/test
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
..
google3 feat(core): template-var-assignment update schematic (#29608) 2019-04-02 15:47:32 -07:00
BUILD.bazel feat(core): template-var-assignment update schematic (#29608) 2019-04-02 15:47:32 -07:00
line_mappings_spec.ts feat(core): template-var-assignment update schematic (#29608) 2019-04-02 15:47:32 -07:00
project_tsconfig_paths_spec.ts refactor(core): static-query schematic should not run multiple times (#29133) 2019-03-12 12:28:14 -07:00
static_queries_migration_spec.ts refactor(core): static-query schematic should handle abstract classes (#29688) 2019-04-10 12:15:05 -07:00
template_var_assignment_migration_spec.ts test(core): add test for template variable object property assignment (#29708) 2019-04-08 09:46:57 -07:00