What is AOT compilation What are the advantages of AOT Every Angular application consists of components and templates which the browser cannot understand. Therefore, all the Angular applications need to be compiled first before running inside the browser. Angular provides two types of compilation: JIT(Just-in-Time) compilation AOT(Ahead-of-Time) compilation In JIT compilation, the application compiles inside the browser during runtime. Whereas in the AOT compilation, the application compiles during the build time. The advantages of using AOT compilation are: Since the application compiles before running inside the browser, the browser loads the executable code and renders the application immediately, which leads to faster rendering . In AOT compilation, the compiler sends the external HTML and CSS files along with the application, eliminating separate AJAX requests for those source files, which leads to fewer ajax requests . Developers can detect and handle errors during the bui
Amritanjali's blog UI Source on UI related technologies like Angular, TypeScript, JavaScript, HTML, CSS.