This project was generated with Angular CLI version 7.1.2.
git clone https://github.com/abhilasha224/angular7-universal.git
cd angular7-universal
npm install
npm run build:ssr && npm run serve:ssr
Angular Universal generates static application pages on the server through a process called server-side rendering (SSR). With angular it can be found under the package @angular/platform-server. It Improves performance of angular applications and Facilitate web crawlers (SEO). Without using Universal the application creates bundle files which will not expose any HTML, in turn no meta tags would be visible to crawlers.
Using Universal(SSR)
Run ng serve for a universal dev server. Navigate to http://localhost:4200/.
Run npm run build:ssr && npm run serve:ssr for a universal dev server. Navigate to http://localhost:4000/.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

