mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-21 09:50:13 +01:00
feat(aot): aot compilation work in progress
This commit is contained in:
parent
24fe588b42
commit
d89d176e54
117 changed files with 866 additions and 1041 deletions
24
src/main.browser.aot.ts
Normal file
24
src/main.browser.aot.ts
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue