From c16ce1de8e8c21ad2136335d3b0b7d230e6d2f24 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 13 Jan 2017 12:16:00 +0100 Subject: Client: add basic aot support --- client/src/main.browser.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 client/src/main.browser.ts (limited to 'client/src/main.browser.ts') 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 @@ +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 { + return platformBrowserDynamic() + .bootstrapModule(AppModule) + .then(decorateModuleRef) + .catch(err => console.error(err)); +} + +bootloader(main); -- cgit v1.2.3