docs: Correct code references in Tutorial 01. (#55506)

PR Close #55506
This commit is contained in:
yuichi.imori 2024-04-24 17:39:54 +09:00 committed by Andrew Kushnir
parent 1e58aa00b8
commit 10040e99e9

View file

@ -87,18 +87,18 @@ In your IDE:
1. In `index.html`, replace the `<title>` element with this code to update the title of the app.
<docs-code header="Replace in src/index.html" path="adev/src/content/tutorials/first-app/steps/01-hello-world/src/index.html" visibleLines="[5]"/>
<docs-code header="Replace in src/index.html" path="adev/src/content/tutorials/first-app/steps/02-HomeComponent/src/index.html" visibleLines="[5]"/>
Then, save the changes you just made to `index.html`.
1. Next, open `first-app/src/app/app.component.ts`.
1. In `app.component.ts`, in the `@Component` definition, replace the `template` line with this code to change the text in the app component.
<docs-code header="Replace in src/app/app.component.ts" path="adev/src/content/tutorials/first-app/steps/01-hello-world/src/app/app.component.ts" visibleLines="[7]"/>
<docs-code header="Replace in src/app/app.component.ts" path="adev/src/content/tutorials/first-app/steps/02-HomeComponent/src/app/app.component.ts" visibleLines="[7,9]"/>
1. In `app.component.ts`, in the `AppComponent` class definition, replace the `title` line with this code to change the component title.
<docs-code header="Replace in src/app/app.component.ts" path="adev/src/content/tutorials/first-app/steps/01-hello-world/src/app/app.component.ts" visibleLines="[11]"/>
<docs-code header="Replace in src/app/app.component.ts" path="adev/src/content/tutorials/first-app/steps/02-HomeComponent/src/app/app.component.ts" visibleLines="[12,14]"/>
Then, save the changes you made to `app.component.ts`.