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
For reasons described in #5275, dynamic compilation of components is possible in JIT mode but not in AOT. In order to support dynamic compilation, per comment in link below, I have been using the --no-aot flag to JIT build for production.
With the upcoming plans for --aot by default in cli v.1.5.0 and beyond, I'd like to request/confirm continued support for the --no-aot flag for ng serve / ng build
Mention any other details that might be useful.
Use case - for a commercial enterprise app scenario, where bandwidth is cheap and development resources hard to come by, dynamic component compilation allows non-developers to build pages that are more complex than a typical "dashboard" but without requirement for a full-on development environment or permissions to push a new build. Dynamic component templates and class definitions would instead be stored in a database and loaded as needed, without risk of breaking the build. Typical case might be 90% AOT (the "built-in components") and 10% JIT compiled ("custom components")
The text was updated successfully, but these errors were encountered:
AOT will not be by default in 1.x (1.5, 1.6 or beyond). This is considered a major version change. Also note that there's no plan to remove the flag itself. So in 2.x (2.0, 2.1, 2.2 and above) you will still be able to build with --aot=false.
When we revisit this option to completely remove the --aot flag, there should be a way for you to dynamically compile components. As well, it will be at the very least in the CLI 3.0, since removing a flag is also a major version change.
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.5.0 and beyond
Desired functionality.
For reasons described in #5275, dynamic compilation of components is possible in JIT mode but not in AOT. In order to support dynamic compilation, per comment in link below, I have been using the --no-aot flag to JIT build for production.
#5275 (comment)
With the upcoming plans for --aot by default in cli v.1.5.0 and beyond, I'd like to request/confirm continued support for the --no-aot flag for ng serve / ng build
Mention any other details that might be useful.
Use case - for a commercial enterprise app scenario, where bandwidth is cheap and development resources hard to come by, dynamic component compilation allows non-developers to build pages that are more complex than a typical "dashboard" but without requirement for a full-on development environment or permissions to push a new build. Dynamic component templates and class definitions would instead be stored in a database and loaded as needed, without risk of breaking the build. Typical case might be 90% AOT (the "built-in components") and 10% JIT compiled ("custom components")
The text was updated successfully, but these errors were encountered: