angular-docs-cn/packages/core/schematics/test
Paul Gschwendtner a9242c4fc2 refactor(core): template-var-assignment migration incorrectly warns (#30026)
Currently the `template-var-assignment` migration incorrectly warns if
the template writes to a property in the component that has the same
`ast.PropertyWrite´ name as a template input variable but different
receiver. e.g.

```html
<!-- "someProp.element" will be incorrectly reported as template variable assignment -->
<button *ngFor="let element of list" (click)="someProp.element = null">Reset</button>
```

Similarly if an output writes to a component property with the same name as a
template input variable, but the expression is within a different template scope,
the schematic currently incorrectly warns. e.g.

```html
<button *ngFor="let element of list">{{element}}</button>

<!-- The "element = null" expression does not refer to the "element" template input variable -->
<button (click)="element = null"></button>
```

PR Close #30026
2019-04-22 11:16:19 -07:00
..
google3 refactor(core): static-query schematic should check templates (#29713) 2019-04-11 08:22:44 -07:00
BUILD.bazel feat(core): add schematics to move deprecated DOCUMENT import (#29950) 2019-04-22 08:48:48 -07:00
line_mappings_spec.ts feat(core): template-var-assignment update schematic (#29608) 2019-04-02 15:47:32 -07:00
move_document_migration_spec.ts feat(core): add schematics to move deprecated DOCUMENT import (#29950) 2019-04-22 08:48:48 -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_template_spec.ts refactor(core): static-query template strategy should not parse stylesheets (#29876) 2019-04-18 18:22:09 -07:00
static_queries_migration_usage_spec.ts refactor(core): allow developers to select static-query migration strategy (#29876) 2019-04-18 18:22:09 -07:00
template_var_assignment_migration_spec.ts refactor(core): template-var-assignment migration incorrectly warns (#30026) 2019-04-22 11:16:19 -07:00