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
Currently, the template expressions are compiled at runtime, and evaluated then. Because of this, it doesn't have the information whether there's a typo or typing issue. This is normally fine, until it's kind of less fine: when project size grows bigger, there's a need to have some assistance in discovering the typo/types validity of expressions in the template. Currently the Webstorm and Vscode plugins are doing a decent job with refactoring, but this should be part of the build process.
Originally this was considered part of AOT, but since we want more realistic and short term quantifiable goals, this should stay in a separate issue as it's quite the first part to tackle.
The __typecheck_template_MyInput__ function will be performing the task of type checking for the template. A POC has been done to our convention plugin and it's working good enough so we will pursue this direct, at least in the mean time, to provide some basic for future improvements.
Scope
We may not need to implement full build time template precompilation, but if there's a lot of overlap with this work then we may as well get everything out at once.
Sourcemap should be helpful in pointing our where the issues are in the original html
The text was updated successfully, but these errors were encountered:
馃敠 Context
Currently, the template expressions are compiled at runtime, and evaluated then. Because of this, it doesn't have the information whether there's a typo or typing issue. This is normally fine, until it's kind of less fine: when project size grows bigger, there's a need to have some assistance in discovering the typo/types validity of expressions in the template. Currently the Webstorm and Vscode plugins are doing a decent job with refactoring, but this should be part of the build process.
Originally this was considered part of AOT, but since we want more realistic and short term quantifiable goals, this should stay in a separate issue as it's quite the first part to tackle.
馃捇 Examples
For the following component:
my-input.ts
my-input-html
Generate code for
my-input.ts
should have this unused function for type checking:The
__typecheck_template_MyInput__
function will be performing the task of type checking for the template. A POC has been done to our convention plugin and it's working good enough so we will pursue this direct, at least in the mean time, to provide some basic for future improvements.Scope
The text was updated successfully, but these errors were encountered: