Prerender Angular 4+ app without Angular Universal

Main selling point of Angular 2+ was server side rendering but trust me, it’s lot harder than it sounds.

Angular universal project is buggy, lacks documentation and isn’t compatible with most plugins out there. The thing is, while generating AOT builds, `window` or `document` context of browser is missing. Hence any plugins using that will not work for server side rendering.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store