designcourse / angular-seo

A quick starter template for Angular SEO using Angular 4 with Universal & the Angular CLI
115 stars 40 forks source link

Pre-Rendered Rest API #17

Open AhsanShafique opened 7 years ago

AhsanShafique commented 7 years ago

Is it possible we can hit Our rest APi while pre-render process is going on,

1) - Problem Statement - We have some resources i.e (Logo, Background Images, menu) that comes from server through REST API, while data is coming from server there resources are blank ,we are looking for pre-loaded resources from API while compiling, and the rest of the other API's will cal after render.

2)- How can we make production build i've use ng build --prod for production build but its now showing view source of production version.

Please suggest solution-

Thanks in Advance