You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect this option to be enabled for applications as well, or even better globally in the workspace tsconfig.json file (tsconfig.json.template).
Angular's official documentation on fullTemplateTypeCheck recommends setting this option to true irrespective of whether the project is an application or a library.
We have just enabled "fullTemplateTypeCheck" in our Angular project and realized how many errors were lurking inside templates without being noticed. Such unpleasant surprise could have been easily avoided if @angular/cli had prudently enabled "fullTemplateTypeCheck" when the project was started.
Unless I am missing something, "fullTemplateTypeCheck" seems beneficial in all cases.
One alternative is to let developers discover the usefulness of "fullTemplateTypeCheck" themselves. However, my opinion is that it would be nice of @angular/cli to enlighten them (us) and promote best practices like having "fullTemplateTypeCheck" enabled.
The text was updated successfully, but these errors were encountered:
🚀 Feature request
Command (mark with an
x
)Description
Currently @angular/cli only adds
for library projects (tsconfig.lib.json.template).
I would expect this option to be enabled for applications as well, or even better globally in the workspace tsconfig.json file (tsconfig.json.template).
Angular's official documentation on fullTemplateTypeCheck recommends setting this option to
true
irrespective of whether the project is an application or a library.We have just enabled "fullTemplateTypeCheck" in our Angular project and realized how many errors were lurking inside templates without being noticed. Such unpleasant surprise could have been easily avoided if @angular/cli had prudently enabled "fullTemplateTypeCheck" when the project was started.
Unless I am missing something, "fullTemplateTypeCheck" seems beneficial in all cases.
Describe the solution you'd like
to tsconfig.json.template.
from tsconfig.lib.json.template
Describe alternatives you've considered
One alternative is to let developers discover the usefulness of "fullTemplateTypeCheck" themselves. However, my opinion is that it would be nice of @angular/cli to enlighten them (us) and promote best practices like having "fullTemplateTypeCheck" enabled.
The text was updated successfully, but these errors were encountered: