refactor(ivy): let strictTemplates
imply fullTemplateTypeCheck
(#34195)
Previously, it was required that both `fullTemplateTypeCheck` and `strictTemplates` had to be enabled for strict mode to be enabled. This is strange, as `strictTemplates` implies `fullTemplateTypeCheck`. This commit makes setting the `fullTemplateTypeCheck` flag optional so that strict mode can be enabled by just setting `strictTemplates`. PR Close #34195
This commit is contained in:
@ -46,7 +46,7 @@ The following still have type `any`.
|
||||
### Strict mode
|
||||
|
||||
Angular version 9 maintains the behavior of the `fullTemplateTypeCheck` flag, and introduces a third "strict mode".
|
||||
Strict mode is accessed by setting both `fullTemplateTypeCheck` and the `strictTemplates` flag to `true`.
|
||||
Strict mode is a superset of full mode, and is accessed by setting the `strictTemplates` flag to true. This flag supersedes the `fullTemplateTypeCheck` flag.
|
||||
In strict mode, Angular version 9 adds checks that go beyond the version 8 type-checker.
|
||||
Note that strict mode is only available if using Ivy.
|
||||
|
||||
|
Reference in New Issue
Block a user