mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
parent
1e58aa00b8
commit
10040e99e9
1 changed files with 3 additions and 3 deletions
|
|
@ -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`.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue