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.
Loading...
Related Quiz
- What's the primary difference between the switchMap and mergeMap operators?
- Which providedIn value ensures that a service instance is shared across the entire application?
- The operator that's used to handle errors in an Observable sequence is ________.
- When you want to get only the first emitted value from an Observable and then complete, you should use the ________ operator.
- An application form has a section that should only become available if the user selects a specific option in a dropdown menu. Which Angular feature would you use to conditionally display this section?