mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 17:00:13 +01:00
feat(aot) - fixed build fix(aot) - fixed buttons and modals providers fix(changes ) - remove unused changes
26 lines
669 B
TypeScript
26 lines
669 B
TypeScript
/*
|
|
* Angular bootstraping
|
|
*/
|
|
import { platformBrowser } from '@angular/platform-browser';
|
|
import { decorateModuleRef } from './app/environment';
|
|
/*
|
|
* App Module
|
|
* our top level module that holds all of our components
|
|
*/
|
|
import { AppModuleNgFactory } from '../compiled/src/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));
|
|
}
|
|
|
|
export function bootstrapDomReady() {
|
|
document.addEventListener('DOMContentLoaded', main);
|
|
}
|
|
|
|
bootstrapDomReady();
|