angular/aio/content
Alex Rickabaugh 628f957c4a fix(ivy): add strictLiteralTypes to align Ivy + VE checking of literals (#35462)
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
2020-02-21 12:36:12 -08:00
..
cli refactor(docs-infra): remove obsolete format attribute from code examples (#31674) 2019-07-24 14:38:54 -07:00
cli-src build(docs-infra): make the git ref for cli command docs configurable (#26391) 2018-10-11 12:57:49 -07:00
examples feat: add an tickOptions parameter with property processNewMacroTasksSynchronously. (#33838) 2020-02-20 15:15:00 -08:00
guide fix(ivy): add strictLiteralTypes to align Ivy + VE checking of literals (#35462) 2020-02-21 12:36:12 -08:00
images docs: remove old contributors (#34486) 2020-01-14 10:28:25 -08:00
marketing docs: restructure nav for beginner concepts (#34681) 2020-02-04 08:57:32 -08:00
start docs: clarify getting started deployment guide (#35510) 2020-02-20 15:12:30 -08:00
tutorial docs: remove service from region where it was added before it was created (#35354) 2020-02-12 16:46:23 -08:00
file-not-found.md fix(docs-infra): do not create an anchor for the file-not-found header (#27250) 2018-12-05 13:26:26 -08:00
license.md build: bump year (#34651) 2020-01-13 07:21:43 -08:00
navigation.json docs: fix nav to match new toh titles (#35126) 2020-02-10 16:12:55 -08:00