angular/packages/compiler/test
Dylan Hunn 09f589f000 fix(compiler): this.a should always refer to class property a (#55183)
Consider a template with a context variable `a`:
```
<ng-template let-a>{{this.a}}</ng-template>
```

t push -fAn interpolation inside that template to `this.a` should intuitively read the class variable `a`. However, today, it refers to the context variable `a`, both in the TCB and the generated code.

In this commit, the above interpolation now refers to the class field `a`.

BREAKING CHANGE: `this.foo` property reads no longer refer to template context variables. If you intended to read the template variable, do not use `this.`.
Fixes #55115

PR Close #55183
2024-10-08 16:02:18 +00:00
..
expression_parser refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
i18n refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
ml_parser refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
output refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
render3 fix(compiler): this.a should always refer to class property a (#55183) 2024-10-08 16:02:18 +00:00
schema refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
selector refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
shadow_css refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
BUILD.bazel build: replace base64-js package with Node.js Buffer usage (#53464) 2023-12-11 14:04:06 -08:00
compiler_facade_interface_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
integration_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
security_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
style_url_resolver_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
util_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00