What is the difference between JIT and interpreter? Better security AOT compiles HTML templates and components into JavaScript files long before they are served to the client. Detect template errors earlier The AOT compiler detects and reports template binding errors during the build step before users can see them. Here are some reasons you might want to use AOT. READ ALSO: Where is the champion Armor Dragon Age 2? Why would you use AOT compilation?