New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs-infra: Ivy enabled Stackblitz examples + strict mode example templates #40930
docs-infra: Ivy enabled Stackblitz examples + strict mode example templates #40930
Conversation
20e04dd
to
cca56bf
Compare
You can preview 20e04dd at https://pr40930-20e04dd.ngbuilds.io/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch with Ivy being disabled on StackBlitz 💯
(Also, yay for enabling strict templates on docs examples 🚀)
aio/content/examples/built-in-directives/src/app/app.component.html
Outdated
Show resolved
Hide resolved
aio/content/examples/template-syntax/src/app/app.component.html
Outdated
Show resolved
Hide resolved
cca56bf
to
27fe61f
Compare
You can preview 27fe61f at https://pr40930-27fe61f.ngbuilds.io/. |
6b865b2
to
54db333
Compare
You can preview 54db333 at https://pr40930-54db333.ngbuilds.io/. |
We need to explicitly set the `enableIvy` option in a tsconfig file to tell StackBlitz not to use ViewEngine. This commit will generate an appropriate tsconfig.json file in the example data that is sent to StackBlitz, which matches the Ivy setting of the AIO project itself.
This commit turns on full template type checking and fixes the examples that had errors.
54db333
to
ebe5243
Compare
You can preview ebe5243 at https://pr40930-ebe5243.ngbuilds.io/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: global-docs-approvers
We need to explicitly set the `enableIvy` option in a tsconfig file to tell StackBlitz not to use ViewEngine. This commit will generate an appropriate tsconfig.json file in the example data that is sent to StackBlitz, which matches the Ivy setting of the AIO project itself. PR Close #40930
) This commit turns on full template type checking and fixes the examples that had errors. PR Close #40930
) This commit turns on full template type checking and fixes the examples that had errors. PR Close #40930
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
It appears that when we create "live" examples for Stackblitz they are set to run in ViewEngine mode.
This PR fixes that but also fixes up our examples to work with full template type checking, which will be the default for v12 CLI apps.