When building your Angular application for production, which command ensures that Angular's AOT (Ahead of Time) compiler is used?

  • ng build --ahead-of-time
  • ng build --aot
  • ng build --optimize
  • ng build --prod
To ensure that Angular's AOT compiler is used when building your application for production, you should use the ng build --aot command. AOT compilation improves runtime performance and reduces bundle size by pre-compiling Angular templates.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *