aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/main.browser.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/main.browser.ts')
-rw-r--r--client/src/main.browser.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/client/src/main.browser.ts b/client/src/main.browser.ts
new file mode 100644
index 000000000..70bf48537
--- /dev/null
+++ b/client/src/main.browser.ts
@@ -0,0 +1,20 @@
1import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2import { decorateModuleRef } from './app/environment';
3import { bootloader } from '@angularclass/hmr';
4/*
5 * App Module
6 * our top level module that holds all of our components
7 */
8import { AppModule } from './app';
9
10/*
11 * Bootstrap our Angular app with a top level NgModule
12 */
13export function main(): Promise<any> {
14 return platformBrowserDynamic()
15 .bootstrapModule(AppModule)
16 .then(decorateModuleRef)
17 .catch(err => console.error(err));
18}
19
20bootloader(main);