Skip to Content
Beginning Server-Side Application Development with Angular
book

Beginning Server-Side Application Development with Angular

by Bram Borggreve
April 2018
Intermediate content levelIntermediate
110 pages
2h 12m
English
Packt Publishing
Content preview from Beginning Server-Side Application Development with Angular

Generating the Server App

Since Angular CLI version 1.6, there has been a generator for adding support for Angular Universal. It does this by adding a second app to the Angular CLI config, .angular-cli.json.

We will refer to this new app as our server app, and the one we worked with in the previous lesson will be called our browser app.

So, what are the differences between the browser and server apps?

  • Both load another platform which behaves differently.
  • The browser app uses code splitting, which builds the app in various smaller files. This improves load times in the browser. The server builds the app without code splitting as there are no benefits to do this on the server.
  • The browser app loads a greater number of polyfills. These are small JavaScript ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Server-Side Enterprise Development with Angular

Server-Side Enterprise Development with Angular

Bram Borggreve
Building Large-Scale Web Applications with Angular

Building Large-Scale Web Applications with Angular

Chandermani Arora, Kevin Hennessy, Christoffer Noring, Doguhan Uluca
Angular UI Development with PrimeNG

Angular UI Development with PrimeNG

Oleg Varaksin, Sudheer Jonna

Publisher Resources

ISBN: 9781789342161Supplemental Content