codediodeio / angular-firestarter

🍱 :fire: Angular + Firebase Progressive Web App Starter
https://firestarter.fireship.io/
956 stars 437 forks source link

Firebase hosting - prerender routes with route params #55

Open eruecco87-zz opened 5 years ago

eruecco87-zz commented 5 years ago

I'm not completely clear on how to get the prerender functionality working for routes that use route params to fetch the component data from an api.

My route is currenlty set like this in my routing module

{ path: 'episode/:episodeId', component: EpisodeComponent }

I've followed the instructions from this tutorial but it does not mention anything about using route params on components. https://angularfirebase.com/lessons/angular-6-universal-ssr-prerendering-firebase-hosting/