I\'m trying to bootstrap my Angular 2 RC5 application following this guide https://angular.io/docs/ts/latest/guide/ngmodule.html Below is my code
import { A
2017 UPDATE
As of Janurary 2017 If using angular-cli, AOT compiling is now the default compilation method when running the following command ng build --prod with no code change requirements.
If you want to disable AOT and instead use JIT in production, then you can use ng build --prod --no-aot.
Source: https://github.com/angular/angular-cli/issues/4138
This means that you can still use JIT compiling whilst developing (will compile faster so pretty handy) with ng build and leave your .ts as something like this:
// The browser platform with a compiler
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
// The app module
import { AppModule } from './app/app.module';
// Compile and launch the module
platformBrowserDynamic().bootstrapModule(AppModule);
ng build // build with JIT
ng build --prod --no-aot // build with JIT
ng build --prod // build with AOT