InterviewHubPRO
Section Overview
Q113

Question 113 of 283

Part 5: Animations, Service Workers, Ivy Engine & Builders (101 - 123)

40%
Angular & Signals (283 Qs)•Part 5: Animations, Service Workers, Ivy Engine & Builders (101 - 123)

Can I use AOT compilation with Ivy?

Yes, it is a recommended configuration. Also, AOT compilation with Ivy is faster. So you need set the default build options(with in angular.json) for your project to always use AOT compilation.

javascript
{
 "projects": {
   "my-project": {
     "architect": {
       "build": {
         "options": {
           ...
           "aot": true,
         }
       }
     }
   }
 }
}