How does AOT compiler work?

The Angular ahead-of-time (AOT) compiler converts your Angular HTML and TypeScript code into efficient JavaScript code during the build phase before the browser downloads and runs that code . Compiling your application during the build process provides a faster rendering in the browser.

Read more