server side rendering in Angular




https://github.com/angular-schule/demo-ssr-playground


https://www.youtube.com/watch?v=-VDOAjzLcvQ


https://stackblitz.com/angular/qrqmegvrdye?file=src%2Fapp%2Fhero.service.ts

Angular 8


Create new project

ng new Angular-ssr

then run as client side to check it working

ng serve

then install package for server side rendering

ng add @nguniversal/express-engine --clientProject Angular-ssr

then build it after every changes

npm run build:ssr

then run it using below command

npm runserve:ssr

Comments

Popular Posts