Open rohanpadwalkar opened 5 years ago
Same issue here with me. I hope someone find a solution
Hi buddy, it is because when your angular page renders at server side it does not wait for your HTTP request to complete it simply render HTML if HTTP taking a little long also and sends back to the user. so the best way to avoid is user route resolve.
in that way you first download data from HTTP and then send that data to the HTML page. in short, your page will have data before route/page get initiated and the server will render HTML data with the data revied from HTTP call.
do comment if it works for you. Thank you
@rohanpadwalkar Please provide some sample code, because i am new to Angular.
Same issue her except in my case it's the opposite. The content of my homepage isn't rendrerd but for others routes it works fine. Can you provide a solution?
I have implemented @ng-toolkit/universal its working fine for default rotue("/") but when i navigate to some route it does not show content in page source instead it shows router-outlet tag without content
package.json
Current behavior
Environment