How to use Angular 2 Universal in Angular 4.0

I am trying to find out how to make Angular 2 Universal. But I can't find any good tutorials or documentation.

My Angular project is currently running with Angular CLI 1.0, which is now in Angular 4.0. And we read that Universal is built in.

I don't even know where to start. Some of the tutorials are even out of date, which is confusing and not sure even if it's worth trying. So can someone point me in the right direction?

Thank!

+3


source to share


2 answers


I think the following material is right for you. Also I learned angular generic from him. https://angular.io/docs/ts/latest/guide/universal.html



0


source


You can follow their official Github page: https://github.com/angular/universal

Work is still in progress:



Angular 4.0

  • Integration of the platform API into the core (Done)
  • Server-Side Headers and Meta-Services Support (Done)
  • Write basic API documentation (in progress)
  • Express development, ASP.NET core, Hapi engines (in progress)

If you are looking for sample code this might be quite helpful: https://github.com/robwormald/ng-universal-demo

0


source







All Articles