vyakymenko / angular-seed-express

[DEPRECATED, Please use https://github.com/vyakymenko/angular-express] Extensible, reliable and modular starter project for Angular 7 with statically typed build AoT compilation, Express server and PM2 Daemon.

Home Page:https://github.com/vyakymenko/angular-seed-express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for SSR - Server Side Rendering

bennykelly opened this issue · comments

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ x ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior
App works perfectly, however, on load if you view the page source, you only get back the basic loading... div. Not great for social sharing or SEO.

Expected behavior
Ideally, utilizing server side rending (provided by the ServerModule in @angular/platform-server) the page would be served from the server initially and then transitioned to the browser code once downloaded.

Minimal reproduction of the problem with instructions

Once the homepage loads, view source (not inspect) and you will see the DOM is not visible for the components

What is the motivation / use case for changing the behavior?
Improves performance / time to first paint of page
Improved SEO and social sharing

Please tell us about your environment:

  • Angular Seed Version: aaaaf75
  • Node: node --version = v6.11.1

Hi @bennykelly , interesting feature, but at this point, you can use Angular Universal that is resolving your issue. Please take a look more about it,

Thanks!