Under View Engine's default (non-fullTemplateTypeCheck) checking, object and array literals which appear in templates are treated as having type `any`. This allows a number of patterns which would not otherwise compile, such as indexing an object literal by a string: ```html {{ {'a': 1, 'b': 2}[value] }} ``` (where `value` is `string`) Ivy, meanwhile, has always inferred strong types for object literals, even in its compatibility mode. This commit fixes the bug, and adds the `strictLiteralTypes` flag to specifically control this inference. When the flag is `false` (in compatibility mode), object and array literals receive the `any` type. PR Close #35462
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT