You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aio/content/tutorial/first-app/first-app-lesson-03.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ In the **Edit** pane of your IDE:
65
65
66
66
<code-exampleheader="Add HousingLocationComponent to imports array in src/app/home/home.component.ts"path="first-app-lesson-03/src/app/home/home.component.ts"region="add-housingLocation-to-array"></code-example>
67
67
68
-
1. Now the component is ready for use in the template for the `HomeComponent`. Update the `template` property of the `@Component`metatdata to include a reference to the `<app-housing-location>` tag.
68
+
1. Now the component is ready for use in the template for the `HomeComponent`. Update the `template` property of the `@Component`metadata to include a reference to the `<app-housing-location>` tag.
69
69
70
70
<code-exampleheader="Add housing location to the component template in src/app/home/home.component.ts"path="first-app-lesson-03/src/app/home/home.component.ts"region="add-housingLocation-to-template"></code-example>
In this updated template code you have used property binding to bind the `housingLocation.photo` to the `src` attribute. The `alt` attribute uses interpoloation to give more context to the alt text of the image.
47
+
In this updated template code you have used property binding to bind the `housingLocation.photo` to the `src` attribute. The `alt` attribute uses interpolation to give more context to the alt text of the image.
48
48
49
-
You use interpoloation to include the values for name, city and state of the `housingLocation` property.
49
+
You use interpolation to include the values for name, city and state of the `housingLocation` property.
50
50
51
51
### Step 2 - Confirm the changes render in the browser
Copy file name to clipboardExpand all lines: aio/content/tutorial/first-app/first-app-lesson-10.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ In the previous step you removed the reference to the `<app-home>` component in
81
81
82
82
<code-exampleheader="Add routes to the app"path="first-app-lesson-10/src/app/routes.ts"region="define-app-routes"></code-example>
83
83
84
-
The entries in the `routeConfig` array represent the routes in the application. The first entry navigates to the `HomeComponent` whenever the url matches `''`. The second entry uses some special formatting that will be revisted in a future lesson.
84
+
The entries in the `routeConfig` array represent the routes in the application. The first entry navigates to the `HomeComponent` whenever the url matches `''`. The second entry uses some special formatting that will be revisited in a future lesson.
85
85
86
86
1. Save all changes and confirm that the application works in the browser. The application should still display the list of housing locations.
Copy file name to clipboardExpand all lines: aio/content/tutorial/first-app/first-app-lesson-11.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ If you have any trouble during this lesson, you can review the completed code fo
21
21
At the end of this lesson your application will have support for routing to the details page.
22
22
23
23
## Conceptual preview of routing with route parameters
24
-
In the previous lesson, you added routing to your app and in this lesson you will expand the types of routing your app supports. Each housing location has specific details that should be displayed when a user navigates to the details page for that item. To accopmlish this goal, you will need to use route parameters.
24
+
In the previous lesson, you added routing to your app and in this lesson you will expand the types of routing your app supports. Each housing location has specific details that should be displayed when a user navigates to the details page for that item. To accomplish this goal, you will need to use route parameters.
25
25
26
26
Route parameters enable you to include dynamic information as a part of your route URL. To identify which housing location a user has clicked on you will use the `id` property of the `HousingLocation` type.
27
27
@@ -30,7 +30,7 @@ Route parameters enable you to include dynamic information as a part of your rou
30
30
Perform these steps on the app code in your IDE.
31
31
32
32
### Step 1 - Create a new service for your app
33
-
In lesson 10, you added a second route to `src/app/routes.ts`, this route includes a special segment that identifes the route parameter, `id`:
33
+
In lesson 10, you added a second route to `src/app/routes.ts`, this route includes a special segment that identifies the route parameter, `id`:
@@ -111,7 +111,7 @@ To access the data you will add a call to the `HousingService`.
111
111
</section>
112
112
113
113
### Step 4 - Add navigation to the `HomeComponent`
114
-
In a previous lesson you updated the `AppComponent` template to include a `routerLink`. Adding that code updated your app to enable navigation back to the `HomeComponent`whenver the logo is clicked.
114
+
In a previous lesson you updated the `AppComponent` template to include a `routerLink`. Adding that code updated your app to enable navigation back to the `HomeComponent`whenever the logo is clicked.
115
115
116
116
1. Confirm that your code matches the following:
117
117
@@ -121,9 +121,9 @@ In a previous lesson you updated the `AppComponent` template to include a `route
121
121
122
122
## Lesson Review
123
123
In this lesson you updated your app to:
124
-
* use route paramters to pass data to a route
124
+
* use route parameters to pass data to a route
125
125
* use the `routerLink` directive to use dynamic data to create a route
126
-
* use route paramter to retrieve data from the `HousingService` to display housing location specific information.
126
+
* use route parameter to retrieve data from the `HousingService` to display housing location specific information.
127
127
128
128
Really great work so far.
129
129
@@ -137,7 +137,7 @@ If you are having any trouble with this lesson, you can review the completed cod
137
137
For more information about the topics covered in this lesson, visit:
138
138
139
139
<!-- vale Angular.Google_WordListSuggestions = NO -->
0 commit comments