diff --git a/adev/src/content/ecosystem/BUILD.bazel b/adev/src/content/ecosystem/BUILD.bazel
new file mode 100644
index 00000000000..f784702f892
--- /dev/null
+++ b/adev/src/content/ecosystem/BUILD.bazel
@@ -0,0 +1,8 @@
+load("@npm//@angular/build-tooling/bazel/markdown_to_html:markdown_to_html.bzl", "markdown_to_html")
+
+markdown_to_html(
+ name = "ecosystem",
+ srcs = glob([
+ "*.md",
+ ]),
+)
diff --git a/adev/src/content/ecosystem/service-workers/BUILD.bazel b/adev/src/content/ecosystem/service-workers/BUILD.bazel
new file mode 100644
index 00000000000..8f51e1d036e
--- /dev/null
+++ b/adev/src/content/ecosystem/service-workers/BUILD.bazel
@@ -0,0 +1,14 @@
+load("@npm//@angular/build-tooling/bazel/markdown_to_html:markdown_to_html.bzl", "markdown_to_html")
+
+markdown_to_html(
+ name = "service-workers",
+ srcs = glob([
+ "*.md",
+ ]),
+ data = [
+ "//adev/src/content/examples/service-worker-getting-started:src/app/check-for-update.service.ts",
+ "//adev/src/content/examples/service-worker-getting-started:src/app/handle-unrecoverable-state.service.ts",
+ "//adev/src/content/examples/service-worker-getting-started:src/app/log-update.service.ts",
+ "//adev/src/content/examples/service-worker-getting-started:src/app/prompt-update.service.ts",
+ ],
+)
diff --git a/adev/src/content/ecosystem/service-workers/communications.md b/adev/src/content/ecosystem/service-workers/communications.md
index 38ca4fe4461..d29b3463fc5 100644
--- a/adev/src/content/ecosystem/service-workers/communications.md
+++ b/adev/src/content/ecosystem/service-workers/communications.md
@@ -23,7 +23,7 @@ The `versionUpdates` is an `Observable` property of `SwUpdate` and emits four ev
| `VersionReadyEvent` | Emitted when a new version of the app is available to be activated by clients. It may be used to notify the user of an available update or prompt them to refresh the page. |
| `VersionInstallationFailedEvent` | Emitted when the installation of a new version failed. It may be used for logging/monitoring purposes. |
-
+
### Checking for updates
@@ -33,7 +33,7 @@ However, you might choose to manually check for updates if you have a site that
Do this with the `checkForUpdate()` method:
-
+
This method returns a `Promise` which indicates if an update is available for activation.
The check might fail, which will cause a rejection of the `Promise`.
@@ -55,7 +55,7 @@ Alternatively, you might want to define a different [registration strategy](api/
You can update an existing tab to the latest version by reloading the page as soon as a new version is ready.
To avoid disrupting the user's progress, it is generally a good idea to prompt the user and let them confirm that it is OK to reload the page and update to the latest version:
-
+
Calling `activateUpdate()` updates a tab to the latest version without reloading the page, but this could break the application.
@@ -95,7 +95,7 @@ That particular application version is broken and there is no way to fix the sta
In such cases, the service worker notifies the client by sending an `UnrecoverableStateEvent` event.
Subscribe to `SwUpdate#unrecoverable` to be notified and handle these errors.
-
+
## More on Angular service workers