Skip to content

continued support for --no-aot flag with ng serve and ng build #7726

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

Closed
jaa1982 opened this issue Sep 17, 2017 · 2 comments
Closed

continued support for --no-aot flag with ng serve and ng build #7726

jaa1982 opened this issue Sep 17, 2017 · 2 comments
Assignees

Comments

@jaa1982
Copy link

jaa1982 commented Sep 17, 2017

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [X ] feature request

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")

@hansl
Copy link
Contributor

hansl commented Sep 25, 2017

Hello @jaa1982,

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.

Hope this clarifies the situation. Thanks!

Closing this as answered.

@hansl hansl closed this as completed Sep 25, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants