Blame view

src/main.browser.ts 582 Bytes
05b0b5d8   Yarik   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  /*
   * Angular bootstraping
   */
  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);