mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: Update code snippet visible lines (#60419)
Updates the relevant code snippet visible lines to be accurate. PR Close #60419
This commit is contained in:
parent
b2222889c8
commit
b972249145
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ In the **Edit** pane of your IDE, in `src/app/home/home.component.ts`:
|
|||
|
||||
1. In `HomeComponent`, add the following code to inject the new service and initialize the data for the app. The `constructor` is the first function that runs when this component is created. The code in the `constructor` will assign the `housingLocationList` the value returned from the call to `getAllHousingLocations`.
|
||||
|
||||
<docs-code header="Initialize data from service in src/app/home/home.component.ts" path="adev/src/content/tutorials/first-app/steps/10-routing/src/app/home/home.component.ts" visibleLines="[28,32]"/>
|
||||
<docs-code header="Initialize data from service in src/app/home/home.component.ts" path="adev/src/content/tutorials/first-app/steps/10-routing/src/app/home/home.component.ts" visibleLines="[25,32]"/>
|
||||
|
||||
1. Save the changes to `src/app/home/home.component.ts` and confirm your app builds without error.
|
||||
Correct any errors before you continue to the next step.
|
||||
|
|
|
|||
Loading…
Reference in a new issue