Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Server-Side Enterprise Development with Angular

You're reading from   Server-Side Enterprise Development with Angular Use Angular Universal to pre-render your web pages, improving SEO and application UX

Arrow left icon
Product type Paperback
Published in Nov 2018
Publisher
ISBN-13 9781789806267
Length 142 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Bram Borggreve Bram Borggreve
Author Profile Icon Bram Borggreve
Bram Borggreve
Arrow right icon
View More author details
Toc

Introduction

In this chapter, we will add a service worker to the application that we built in the previous chapters.

We will add the Angular service worker module to our application and configure it to convert the app into a Progressive Web App.

What is a Service Worker?

A service worker is a script that the browser runs in the background that acts as a network proxy to manage network requests programmatically. It sits between the network and the device and caches content, enabling an offline experience for the user.

In addition to caching data, it can also synchronize API data in the background and add things such as push notifications.

What is a Progressive Web App?

A Progressive Web App (PWA) is a term that is used for web applications that behave similar to a native mobile application. Similar to native apps, they allow an application to be started when the user is offline, caching the UI elements and API calls to display an initial page. This way, a user can...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime