Skip to content

Instantly share code, notes, and snippets.

@WagnerMoreira
Last active January 12, 2018 02:02
Show Gist options
  • Save WagnerMoreira/0b31ce8ecb139700f2123d884ec3caea to your computer and use it in GitHub Desktop.
Save WagnerMoreira/0b31ce8ecb139700f2123d884ec3caea to your computer and use it in GitHub Desktop.
Angular Universal
projects that provide a starting point:

https://github.com/angular/universal-starter

https://github.com/angular/universal

tutorial: https://www.youtube.com/watch?v=lncsmB5yfzE&t=49s

Important

Some part of Angular Universal(API part) is merged to @angular/Core some another part is now rewritten with the name of @angular/platform-server

As @mikezks mentioned on that topic angular/angular#13822 (comment) all the magic is renderModuleFactory (that is the whole magic behind SSR). so from now: @angular/platfomr-server is for server side rendering of Angular and generating HTML pages(in NodeJS)

Angular 5 comes with many Angular Universal improvements as well

https://blog.angular.io/version-5-0-0-of-angular-now-available-37e414935ced

my current project working with angular universal:

https://bitbucket.org/wtkd/testing-angular-ssr

the way I fixed an issue about ngc: --aot=false angular/angular-cli#4551 but I'm not sure if this causes any side effects

Angular Universal Tutorial

https://coursetro.com/posts/code/68/Make-your-Angular-App-SEO-Friendly-(Angular-4-+-Universal)

Transfer State

https://medium.com/@evertonrobertoauler/angular-5-universal-with-transfer-state-using-angular-cli-19fe1e1d352c

new project running on Angular v5 with transferState: https://medium.com/@evertonrobertoauler/angular-5-universal-with-transfer-state-using-angular-cli-19fe1e1d352c

https://medium.com/@ryanchenkie_40935/angular-authentication-using-the-http-client-and-http-interceptors-2f9d1540eb8

https://stackoverflow.com/questions/45286764/angular-httpclient-doesnt-send-header/45286959#45286959

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment