Prerender Angular 4+ app without Angular Universal

Uday Hiwarale
3 min readOct 31, 2017
(source: imgur.com)

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.

--

--