In our previous video we learned how to use the Angular CLI to create our first Angular application. Now it's time to prepare it for production. That requires some building, bundling, minifying and "Ahead of Time" compilation. In this video we will learn how simple it can be by using the Angular CLI.

TL;DW (Too long, didn’t watch): You can simply append the --aot to your build instruction, like ng build --prod --aot. Ya, it’s really that damn simple :smiley:

This video you will learn about…

You can download the source code I use in the video from my repository.

Angular Docs Cookbook: Ahead of Time Compilation
Learn how to use Ahead-of-time compilation https://angular.io/docs/ts/latest/cookbook/aot-compiler.html

If you enjoyed this post you might want to follow me on Twitter for more news around JavaScript and Angular 2. :smiley: