angular/packages/compiler/src/render3
Kristiyan Kostadinov f52df99fe3 fix(compiler): generate view restoration for keyed write inside template listener (#42603)
If an implcit receiver is accessed in a listener inside of an `ng-template`, we generate some extra code in order to ensure that we're assigning to the correct object. The problem is that the logic wasn't covering keyed writes which caused it to write to the wrong object and throw an assertion error at runtime.

These changes expand the logic to cover keyed writes.

Fixes #41267.

PR Close #42603
2021-06-21 18:30:37 +00:00
..
partial fix(compiler): non-literal inline templates incorrectly processed in partial compilation (#41583) 2021-04-16 09:33:05 -07:00
view fix(compiler): generate view restoration for keyed write inside template listener (#42603) 2021-06-21 18:30:37 +00:00
r3_ast.ts refactor(compiler): option to include html comments in ParsedTemplate (#41251) 2021-03-29 15:16:26 -07:00
r3_class_metadata_compiler.ts refactor(compiler-cli): introduce declaration function to declare class metadata (#41200) 2021-04-12 10:41:17 -07:00
r3_factory.ts refactor(compiler): rename R3FactoryTarget to FactoryTarget (#41231) 2021-03-30 16:46:37 -07:00
r3_identifiers.ts refactor(compiler-cli): introduce declaration function to declare class metadata (#41200) 2021-04-12 10:41:17 -07:00
r3_injector_compiler.ts refactor(compiler): use ɵɵInjectorDeclaration rather than ɵɵInjectorDef in compiled output (#41119) 2021-03-22 08:57:18 -07:00
r3_jit.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
r3_module_compiler.ts refactor(core): rename ...WithMeta types to ...Declaration and alias to unknown (#41119) 2021-03-22 08:57:18 -07:00
r3_pipe_compiler.ts refactor(core): rename ...WithMeta types to ...Declaration and alias to unknown (#41119) 2021-03-22 08:57:18 -07:00
r3_template_transform.ts refactor(compiler): option to include html comments in ParsedTemplate (#41251) 2021-03-29 15:16:26 -07:00
util.ts refactor(compiler-cli): implement ɵɵngDeclareNgModule and ɵɵngDeclareInjector (#41080) 2021-03-15 13:26:51 -07:00