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