What is the purpose of the --prod flag when building an Angular application using the Angular CLI?
- Create a new production app
- Enable Angular Pro mode
- Generate production code
- Optimize for production
The --prod flag in the Angular CLI build command is used to optimize the application for production, resulting in smaller and faster code.
Loading...
Related Quiz
- Angular's change detection mechanism ensures that the _____ is in sync with the component's state.
- How can you preload data for a route before navigating to it?
- In a scenario where you need to combine responses from multiple API calls but only want to proceed when all calls have completed successfully, which RxJS operator would be most suitable?
- What is the main advantage of using a Subject over a standard Observable?
- How can you convert a cold observable into a hot observable?