Skip to content

abhilasha224/angular7-universal

Repository files navigation

Angular7 Universal

This project was generated with Angular CLI version 7.1.2.

Getting Started

git clone https://github.com/abhilasha224/angular7-universal.git

cd angular7-universal

npm install

npm run build:ssr && npm run serve:ssr

Server Side Rendering

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.

image

Using Universal(SSR)

image

Development server

Run ng serve for a universal dev server. Navigate to http://localhost:4200/.

Universal Development server

Run npm run build:ssr && npm run serve:ssr for a universal dev server. Navigate to http://localhost:4000/.

Code scaffolding

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.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

About

A sample project including basic angular concepts with server side rendering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors