PeerTube/client/src/main.browser.ts

21 lines
549 B
TypeScript
Raw Normal View History

2016-09-06 22:40:57 +02:00
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';
2016-09-06 22:40:57 +02:00
/*
* 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));
}
2016-09-06 22:40:57 +02:00
bootloader(main);