AngularJS v10.0.6 SSR – Step by Step

//AngularJS v10.0.6 SSR – Step by Step

AngularJS v10.0.6 SSR – Step by Step

Tutorial Angular SSR: https://www.ganatan.com/tutorials/server-side-rendering-with-angular-universal
ng new test

npm install –save @angular/platform-server
npm install –save @nguniversal/express-engine
npm install –save express
npm install –save @nguniversal/builders
npm install –save @types/express

ng add @nguniversal/express-engine

npm run start is the same as ng server

Development

npm run start
http://localhost:4200/

Tests

npm run lint
npm run test
npm run e2e

AOT Compilation

npm run build

SSR Compilation

npm run build:ssr
npm run serve:ssr
http://localhost:4000/

By |2020-08-06T15:17:04-06:00August 6th, 2020|Web Developer|Comments Off on AngularJS v10.0.6 SSR – Step by Step

About the Author: