From d3ccf5ca82ccbe41cd97f0ffeef653b7f82911ab Mon Sep 17 00:00:00 2001 From: Kam Date: Mon, 7 Sep 2026 16:53:34 +0300 Subject: [PATCH] docs: fix the visibleLines range on the ngFor tutorial step `visibleLines="26-131"` is not valid JSON, so `expandRangeStringValues` threw and returned an empty list. The rendered attribute was empty, and the viewer treats that as no range at all, so no ExampleViewer was created: https://angular.dev/tutorials/first-app/08-ngFor showed all 128 lines of `home.ts` with no collapse and no expand control, including the `@for` block the reader has not written yet. The file is 128 lines and the property this step adds ends at 127. The sibling snippet on the same page already uses the `[start,end]` form. --- adev/src/content/tutorials/first-app/steps/08-ngFor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adev/src/content/tutorials/first-app/steps/08-ngFor/README.md b/adev/src/content/tutorials/first-app/steps/08-ngFor/README.md index 0628c9c480e..d998bbe9392 100644 --- a/adev/src/content/tutorials/first-app/steps/08-ngFor/README.md +++ b/adev/src/content/tutorials/first-app/steps/08-ngFor/README.md @@ -27,7 +27,7 @@ In the `Home` there is only a single housing location. In this step, you will ad 1. In `src/app/home/home.ts`, remove the `housingLocation` property from the `Home` class. 1. Update the `Home` class to have a property called `housingLocationList`. Update your code to match the following code: - + IMPORTANT: Do not remove the `@Component` decorator, you will update that code in an upcoming step.