Just kick started with Angular 2.
What are the various Bootstrapping options in angular 2?
Why is that when I make a change and refresh the index.html takes little time to retrieve the HTML markups?
Differences between them
There are two options
Dynamic bootstrapping
main.ts contains the following
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
platformBrowserDynamic().bootstrapModule(AppModule);
main.ts contains the following
import { platformBrowser } from '@angular/platform-browser';
import { AppModuleNgFactory } from '../aot/app/app.module.ngfactory';
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);