mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-21 01:40:13 +01:00
25 lines
582 B
TypeScript
25 lines
582 B
TypeScript
/*
|
|
* Angular bootstraping
|
|
*/
|
|
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<any> {
|
|
return platformBrowserDynamic()
|
|
.bootstrapModule(AppModule)
|
|
.then(decorateModuleRef)
|
|
.catch(err => console.error(err));
|
|
|
|
}
|
|
|
|
|
|
bootloader(main);
|