mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 10:08:57 +00:00
Delay Angular 2 bootstrapping until DOMContentLoaded
This commit is contained in:
@@ -18,4 +18,6 @@ if (hotModuleReplacement) {
|
|||||||
|
|
||||||
// Boot the application
|
// Boot the application
|
||||||
const platform = platformUniversalDynamic();
|
const platform = platformUniversalDynamic();
|
||||||
platform.bootstrapModule(AppModule);
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
platform.bootstrapModule(AppModule);
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user