]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/main.browser.aot.ts
Update roadmap
[github/Chocobozzz/PeerTube.git] / client / src / main.browser.aot.ts
1 import { platformBrowser } from '@angular/platform-browser';
2 import { decorateModuleRef } from './app/environment';
3 /*
4 * App Module
5 * our top level module that holds all of our components
6 */
7 import { AppModuleNgFactory } from '../compiled/src/app/app.module.ngfactory';
8
9 /*
10 * Bootstrap our Angular app with a top level NgModule
11 */
12 export function main(): Promise<any> {
13 return platformBrowser()
14 .bootstrapModuleFactory(AppModuleNgFactory)
15 .then(decorateModuleRef)
16 .catch((err) => console.error(err));
17 }
18
19 export function bootstrapDomReady() {
20 document.addEventListener('DOMContentLoaded', main);
21 }
22
23 bootstrapDomReady();