docs: add package doc files (#26047)

PR Close #26047
This commit is contained in:
Judy Bogart
2018-09-19 15:25:13 -07:00
committed by Jason Aden
parent 3a5cb1cb11
commit f543d71cc3
9 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,16 @@
Implements a service worker for Angular apps.
Adding a service worker to an Angular app is one of the steps for turning it into a Progressive Web App (also known as a PWA).
At its simplest, a service worker is a script that runs in the web browser and manages caching for an application.
Service workers function as a network proxy. They intercept all outgoing HTTP requests made by the application and can choose how to respond to them.
To set up the Angular service worker in your project, use the CLI `add` command.
```
ng add @angular/pwa
```
The command configures your app to use service workers by adding the service-worker package
and generating the necessary support files.
For more usage information, see the [Service Workers](guide/service-worker-intro) guide.