In a large Angular application, you want to ensure that the build process is optimized for production, with minimized bundle size and improved performance. Which Angular CLI command or option would you use?
- ng build --development
- ng build --prod --aot
- ng build --watch
- ng build --optimize
To optimize a large Angular application for production with minimized bundle size and improved performance, you would use the "ng build --prod --aot" command (option b). This enables Ahead-of-Time (AOT) compilation and produces optimized bundles.
Loading...
Related Quiz
- In Angular, the _____ method is used to assert that a certain expectation is met in tests.
- Which Angular class is commonly used to programmatically create form controls in a dynamic form?
- You are building an Angular application with a complex form. You want to create an E2E test using Protractor to ensure that the form validation works correctly and that the user can submit the form. What steps would you need to include in your test?
- To control how Angular should handle navigation extras when reusing a route, you can configure the _____ option.
- You are building an admin panel where certain routes should only be activated if the user has the required permissions. How can you utilize Route Resolvers to ensure that the data indicating permission is fetched before navigation?