Skip to content

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

Closed
@jaa1982

Description

@jaa1982

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions