Sajal Sunderka
Sajal Sunderka

Reputation: 33

Angular 4 and Prerender.io

I have been trying to incorporate Angular 4 with prerender.io for SEO pages, but I am not able to see the HTML page; it is stuck on the preloader loading the page. I am definitely missing something.

http://localhost:3000/https://www.google.com works, and properly redirects to https://www.google.co.in/?gfe_rd=cr&dcr=0&ei=mnT4WdOfEovz8Aedr4ZQ

However, http://localhost:3000/http://localhost:4200 doesn't work: it gets stuck on the loader page.

Is prerender.io compatible with Angular 4? Is this issue specific to Angular 4?

Regards

Sajal

Upvotes: 0

Views: 2113

Answers (1)

Ivan Aguilar
Ivan Aguilar

Reputation: 616

If you are using Angular 2+, you should be using Angular Universal for Server Side Rendering.

If you are using the CLI, you can follow this guide to set it up correctly.

Upvotes: 1

Related Questions