aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/main.ts
blob: 70bf4853782ed6ac515d453e34b36ea955e0300a (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                           
 







                                                      

 
                 
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { decorateModuleRef } from './app/environment';
import { bootloader } from '@angularclass/hmr';
/*
 * App Module
 * our top level module that holds all of our components
 */
import { AppModule } from './app';

/*
 * Bootstrap our Angular app with a top level NgModule
 */
export function main(): Promise<any> {
  return platformBrowserDynamic()
    .bootstrapModule(AppModule)
    .then(decorateModuleRef)
    .catch(err => console.error(err));
}

bootloader(main);