angular-docs-cn/packages/compiler-cli
Kristiyan Kostadinov a61fe96b70 fix(compiler-cli): incorrectly type checking calls to implicit template variables (#39686)
Currently when we encounter an implicit method call (e.g. `{{ foo(1) }}`) and we manage to resolve
its receiver to something within the template, we assume that the method is on the receiver itself
so we generate a type checking code to reflect it. This assumption is true in most cases, but it
breaks down if the call is on an implicit receiver and the receiver itself is being invoked. E.g.

```
<div *ngFor="let fn of functions">{{ fn(1) }}</div>
```

These changes resolve the issue by generating a regular function call if the method call's receiver
is pointing to `$implicit`.

Fixes #39634.

PR Close #39686
2020-11-16 09:36:10 -08:00
..
integrationtest refactor(core): add top 10 runtime error codes (#39188) 2020-10-28 10:05:01 -07:00
linker refactor(compiler-cli): rename `$ngDeclareDirective`/`$ngDeclareComponent` to use `ɵɵ` prefix (#39518) 2020-11-04 10:44:37 -08:00
ngcc refactor(compiler-cli): Track external component resources in ResourceRegistry (#39373) 2020-10-28 10:57:14 -07:00
src fix(compiler-cli): incorrectly type checking calls to implicit template variables (#39686) 2020-11-16 09:36:10 -08:00
test fix(compiler-cli): incorrectly type checking calls to implicit template variables (#39686) 2020-11-16 09:36:10 -08:00
BUILD.bazel build: upgrade angular build, integration/bazel and @angular/bazel package to rule_nodejs 2.2.0 (#39182) 2020-10-08 11:54:59 -07:00
index.ts
package.json refactor(compiler): remove support for TypeScript 3.9 (#39313) 2020-10-19 14:34:45 -07:00
tsconfig-build.json
tsconfig.json