main.server.ts ssr code example
Example 1: angular add universal
ng add @nguniversal/express-engine
Example 2: angular universal
ng add @nguniversal/express-engine --clientProject <name-of-your-project>
npm run build:ssr
npm run serve:ssr
ng add @nguniversal/express-engine
ng add @nguniversal/express-engine --clientProject <name-of-your-project>
npm run build:ssr
npm run serve:ssr