Skip to content

This repository will demonstrate the use of Angular Universal - SSR.

Notifications You must be signed in to change notification settings

kurbhatt/AngularUniversal

Repository files navigation

AngularUniversal

This project was generated with Angular CLI version 7.1.1.

Run server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Run npm run build:ssr to generate build of SSR. It will generate browser and server build. It will also create prerender.js and server.js, these files will be used run the SSR build. For further command details check package.json.

SSR - Server Side Rendering

Run npm run ssr to build and run application with Angular Universal functionality. Navigate to http://localhost:4000/ for to test SSR. You can check page source, there will be generated HTML code for that page.

Note:

As per user need required profile/config/environment can be created using angular.json file.

For further Query or Found any Issue Please Contact:

Email: info.keyurbhatt@gmail.com

Skype: kurbhatt

About

This repository will demonstrate the use of Angular Universal - SSR.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published