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

Installing Dependencies

Angular comes with support for service workers. In order to use it, we first need to install the dependencies.

  1. Open the terminal in the project directory.
  2. Install the dependencies needed using the npm command:
    npm install @angular/service-worker
  3. When the installation is successful, we should see the new package added to the dependencies object in our project's package.json file:
    Installing Dependencies

In this section, we have installed the dependencies for our service worker, which is the first step in implementing service workers in our app. Let's move on to the next section, where we will enable the service worker in our application.

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