Currently the client of a SSR Angular app needs to wait for DOMContentLoaded to complete before bootstrapping so that TransferState can reliably get the contents of the transferred state from the DOM.
Need to investigate whether we can handle this more transparently without the user needing to bootstrap in a specific way on the client side.
@vikerman do you suggest doing something like this?
document.addEventListener('DOMContentLoaded', () => {
platformBrowserDynamic().bootstrapModule(AppModule);
});
Most helpful comment
@vikerman do you suggest doing something like this?