I have read in a tutorial that says AOT the default compilation in Angular 5 and above. I am a bit confused about this. I searched on the internet and couldn't find a precise answer.
Asked
Active
Viewed 292 times
-1
-
1Possible duplicate of [Is the AOT Compilation the default on angular@4.0.0?](https://stackoverflow.com/questions/43007872/is-the-aot-compilation-the-default-on-angular4-0-0) – GCSDC Mar 15 '19 at 18:00
1 Answers
3
it is for production. For development (ng serve) the default is JIT... to change to 'aot' you have to either add to your angular.json, under the project, serve, options, the option
options {
"aot": true,
}
or simply use ng serve --aot

Francisco Santorelli
- 1,243
- 8
- 13