mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 01:10:13 +01:00
25 lines
605 B
TypeScript
25 lines
605 B
TypeScript
|
|
/*
|
||
|
|
* Angular bootstraping
|
||
|
|
*/
|
||
|
|
import { platformBrowser } from '@angular/platform-browser';
|
||
|
|
import { decorateModuleRef } from './app/environment';
|
||
|
|
import { bootloader } from '@angularclass/hmr';
|
||
|
|
/*
|
||
|
|
* App Module
|
||
|
|
* our top level module that holds all of our components
|
||
|
|
*/
|
||
|
|
import { AppModuleNgFactory } from './app/app.module.ngfactory';
|
||
|
|
/*
|
||
|
|
* Bootstrap our Angular app with a top level NgModule
|
||
|
|
*/
|
||
|
|
export function main(): Promise<any> {
|
||
|
|
return platformBrowser()
|
||
|
|
.bootstrapModuleFactory(AppModuleNgFactory)
|
||
|
|
.then(decorateModuleRef)
|
||
|
|
.catch(err => console.error(err));
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
bootloader(main);
|