For optimal performance and faster initial page loads, Angular recommends using ______ compilation.
- Ahead-of-Time (AOT)
- Dynamic
- Just-in-Time (JIT)
- On-Demand
Angular recommends using Ahead-of-Time (AOT) compilation for optimal performance. AOT compiles Angular templates at build time, resulting in smaller bundle sizes and faster initial page loads because there's no need to compile templates in the browser.
Loading...
Related Quiz
- The ngOnInit method is a part of the ________ lifecycle hook in Angular.
- How can you provide a custom Value Accessor for a form control in Angular?
- You're tasked with integrating a third-party date picker library into an Angular application. The date picker doesn't natively support Angular's forms. What should be your approach to ensure it works seamlessly with Angular's form controls?
- For creating a custom structural directive in Angular, the directive class should implement the _____ method.
- When creating a custom async validator for a form control, which type should the validator return to indicate a validation error?