angular/aio/content/examples
Ward Bell 9f3b549cf6 docs: Migrate Service Worker to Standalone (#51687)
Although there are several pages, only `service-worker-getting-started.md` has an example.
That example code was migrated.

Worked around the few references to NgModule.

Other changes as follows:

**Revised "Getting Started"**

The original service worker example page (`service-worker-getting-started.md`) is full of holes! I don’t know how anyone got this working just by following this page

- it doesn’t tell you where to get the example (and it isn’t generated by AIO)
- it doesn’t tell you that ng serve doesn’t support service worker apps
- it mentions http-server in passing but not what that is or where to get it.
- several commands tell you to supply the “project-name” but (a) it doesn’t tell you how to find that name and (b) you never actually have to provide a name at all. That includes on the command that gets http-server going.

**Hid section on `ngsw-config` tool**

Hid the discussion of the `ngsw-config` tool in `service-worker-config.md` because
(a) the command invoke it didn't seem to work and (b) it referenced `<project-name>`
without explaining what that is or where to find it.

Left the hidden text in the page in case someone wants to do something about this.

Meanwhile, you seem to be able to edit the `ngsw-config.json` and then rebuild.
That should suffice.

**Disabled E2E**

The AIO CI will no longer attempt to run the (thin) E2E tests.

These tests could lightly test the app with the dev server but couldn't test the Service Worker aspects; that would require launching the app with something other than `ng serve` and the AIO CI is not set up for that.

The existing tests appeared to pass when run locally with the dev server.
However, only one of them actually ran; test runner reported.
"There were tests whose specified size is too big."

Decided to bypass E2E testing of this project for now.

PR Close #51687
2023-09-19 12:01:16 +02:00
..
accessibility docs: migrate accessibility guide and example to standalone (#51445) 2023-08-29 22:57:55 +00:00
ajs-quick-reference build(docs-infra): replace base64 images for stackblitz by svgs (#48774) 2023-01-24 16:39:28 +00:00
angular-compiler-options docs: migrate angular compiler options code to standalone (#51467) 2023-08-29 22:24:41 +00:00
angular-linker-plugin docs: fix ellipsis in code-snippet in creating-libraries guide (#45820) 2022-05-09 11:08:46 -07:00
animations build: update cross-repo angular dependencies (#51780) 2023-09-14 19:35:45 +02:00
architecture build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
attribute-binding docs: migrate attribute-binding code to standalone (#51477) 2023-08-29 22:38:02 +00:00
attribute-directives docs: migrate directives guide and examples to standalone (#51416) 2023-08-29 22:37:37 +00:00
binding-syntax docs: migrate binding-syntax code to standalone (#51479) 2023-08-28 23:55:07 +00:00
bootstrapping docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
built-in-directives docs: migrate directives guide and examples to standalone (#51416) 2023-08-29 22:37:37 +00:00
built-in-template-functions docs: migrate built-in-template-functions to standalone (#51486) 2023-08-29 22:58:45 +00:00
cli-builder/src docs: update CLI builder to be platform agnostic (#42371) 2021-06-01 10:13:02 -07:00
comparing-observables docs: Migrate Observables guides & code examples to standalone (#51516) 2023-08-31 17:00:46 +00:00
component-interaction docs: replaced the html tags with the updated ones (#50403) 2023-05-22 17:36:33 +00:00
component-overview build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
component-styles build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
content-projection build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
dependency-injection docs: update dependency injection example to standalone (#51587) 2023-09-08 10:34:10 -07:00
dependency-injection-in-action docs: convert dependency-injection-in-action (#51602) 2023-09-07 12:55:08 -07:00
deprecation-guide docs: remove mention of the string based lazy loading (#51651) 2023-09-05 16:53:29 +00:00
displaying-data docs: updated local variables and removed empty methods (#48344) 2022-12-09 09:56:07 -08:00
docs-style-guide build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
dynamic-component-loader docs: update Dynamic Component loader docs to rely on ngComponentOutlet (#49915) 2023-09-07 10:03:22 -07:00
dynamic-form docs: migrate dynamic-form guide and code to standalone (#51540) 2023-09-07 10:07:03 -07:00
elements docs: migrate elements guide and code to standalone (#51455) 2023-08-30 00:01:12 +00:00
errors/cyclic-imports docs: migrate errors code example and guide to standalone (#51536) 2023-09-07 10:04:39 -07:00
event-binding docs: migrate event-binding code to standalone (#51538) 2023-08-29 17:53:54 +00:00
feature-modules docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
first-app-lesson-00 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-01 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-02 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-03 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-04 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-05 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-06 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-07 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-08 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-09 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-10 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-11 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-12 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-13 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-14 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
form-validation docs: migrate form-validation to standalone (#51709) 2023-09-12 12:24:03 -07:00
forms docs: replaced the html tags with the updated ones (#50403) 2023-05-22 17:36:33 +00:00
forms-overview docs: migrate forms-overview to standalone (#51699) 2023-09-12 12:22:46 -07:00
getting-started docs: update link to the TS config. (#50933) 2023-07-05 13:58:35 +02:00
getting-started-v0 docs: replaced the html tags with the updated ones (#50403) 2023-05-22 17:36:33 +00:00
hierarchical-dependency-injection docs: add revamped guide for dependency injection focused on standalone (#51572) 2023-09-14 11:23:48 +02:00
http docs: Migrate HttpClient guide and its code examples (/http) to standalone (#51400) 2023-08-29 21:03:49 +00:00
i18n docs: Migrate i18n guide pages and code to Standalone (#51589) 2023-09-12 12:20:45 -07:00
injection-token docs(core): clarify InjectionToken usage (#51386) 2023-08-30 15:53:23 +00:00
inputs-outputs docs: Migrate 2nd set of template guide pages and code to Standalone (#51632) 2023-09-12 12:21:32 -07:00
interpolation docs: Migrate 2nd set of template guide pages and code to Standalone (#51632) 2023-09-12 12:21:32 -07:00
lazy-loading-ngmodules docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
lifecycle-hooks build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
ngcontainer build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
ngmodules docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
observables docs: Migrate Observables guides & code examples to standalone (#51516) 2023-08-31 17:00:46 +00:00
observables-in-angular docs: Migrate Observables guides & code examples to standalone (#51516) 2023-08-31 17:00:46 +00:00
pipes docs: Migrate pipe guide and its code examples to standalone (#51333) 2023-08-29 17:52:35 +00:00
practical-observable-usage docs: remove pipe in exponential backoff (#49494) 2023-03-21 07:58:05 +01:00
property-binding docs: Migrate 2nd set of template guide pages and code to Standalone (#51632) 2023-09-12 12:21:32 -07:00
providers docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
providers-viewproviders docs: add revamped guide for dependency injection focused on standalone (#51572) 2023-09-14 11:23:48 +02:00
reactive-forms docs: migrate reactive-forms to standalone (#51707) 2023-09-12 12:23:19 -07:00
resolution-modifiers docs: add revamped guide for dependency injection focused on standalone (#51572) 2023-09-14 11:23:48 +02:00
router refactor(localize): ignore code duplication error with compiler package (#51500) (#51558) 2023-09-08 14:49:07 -07:00
router-tutorial docs(router): Update the basic router guide to use standalone (#51452) 2023-08-28 18:35:31 +00:00
routing-with-urlmatcher docs(router): Update the url matcher guide to use standalone (#51450) 2023-08-25 16:43:50 +00:00
rx-library docs: Migrate Observables guides & code examples to standalone (#51516) 2023-08-31 17:00:46 +00:00
schematics-for-libraries docs: update schematic authoring guide to use new utilities (#50667) 2023-06-12 19:15:45 +02:00
security docs: migrate security guide and example to standalone (#51446) 2023-08-30 15:50:57 +00:00
service-worker-getting-started docs: Migrate Service Worker to Standalone (#51687) 2023-09-19 12:01:16 +02:00
setup docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
structural-directives docs: migrate directives guide and examples to standalone (#51416) 2023-08-29 22:37:37 +00:00
styleguide docs: standardize examples using timers for SSR compatibility (#48480) 2023-04-18 19:03:57 +00:00
template-expression-operators docs: migrate template guide and its code examples to standalone. (#51364) 2023-08-28 18:36:51 +00:00
template-reference-variables docs: migrate template guide and its code examples to standalone. (#51364) 2023-08-28 18:36:51 +00:00
template-syntax docs: migrate template guide and its code examples to standalone. (#51364) 2023-08-28 18:36:51 +00:00
testing docs: migrate testing to standalone (#51684) 2023-09-12 12:22:14 -07:00
toh-pt0 docs: migrate toh-pt0 to standalone (#51575) 2023-08-31 21:43:19 +00:00
toh-pt1 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt2 docs: migrate toh-pt2 to standalone (#51580) 2023-09-06 17:10:16 +00:00
toh-pt3 docs: migrate toh-pt3 to standalone (#51581) 2023-09-07 10:02:40 -07:00
toh-pt4 refactor(docs-infra): correct incomplete string replacement (#51585) 2023-08-31 16:35:51 +00:00
toh-pt5 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt6 refactor(router): Remove RouterTestingModule in favor of RouterModule.forRoot (#49427) 2023-04-04 15:12:33 -07:00
two-way-binding docs: migrate two-way-binding to standalone (#51574) 2023-08-31 16:36:29 +00:00
universal docs: Migrate Universal guide and code to Standalone (#51564) 2023-09-12 12:20:10 -07:00
universal-ngmodule docs: Migrate Universal guide and code to Standalone (#51564) 2023-09-12 12:20:10 -07:00
upgrade-lazy-load-ajs docs: remove empty constructors & ngOnInit() (#48576) 2023-01-05 14:49:38 -08:00
upgrade-module docs: add title tag to index file (#51266) 2023-08-04 11:29:49 -04:00
upgrade-phonecat-1-typescript build(bazel): selectively enable network access for some aio targets 2022-11-22 13:51:16 -07:00
upgrade-phonecat-2-hybrid ci: disable system js tests (#49559) 2023-03-23 08:18:45 -07:00
upgrade-phonecat-3-final ci: disable system js tests (#49559) 2023-03-23 08:18:45 -07:00
user-input docs: migrate user-input code example to standalone (#51466) 2023-08-31 16:37:00 +00:00
view-encapsulation docs: migrate view encapsulation guide and code to standalone (#51454) 2023-08-29 22:58:20 +00:00
what-is-angular docs: update what is angular to use standalone and cup of coffee (#51378) 2023-08-29 18:38:28 +00:00
.eslintrc.json build: update dependency eslint-plugin-jsdoc to v45 (#50523) 2023-05-31 12:34:26 -07:00
BUILD.bazel build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
examples.bzl docs: Migrate Service Worker to Standalone (#51687) 2023-09-19 12:01:16 +02:00
tsconfig.eslint.json refactor(docs-infra): use eslint in aio's example-lint script (#43218) 2021-12-15 12:28:46 -05:00