mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: fix the broken housing location template in the first-app tutorial
Step 11 of the first-app tutorial ships a `housing-location.ts` whose heading
reads `{{ housingLocatio()).name }}`, a misspelled property followed by an
extra parenthesis, so the step's source fails to compile with a template
parser error. Step 10 reuses this directory as its answer.
It came in with #61686, which migrated the tutorial to signal inputs. Use
`housingLocation().name`, matching the rest of the template and every other
step.
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ import {RouterLink} from '@angular/router';
|
||||
alt="Exterior photo of {{ housingLocation().name }}"
|
||||
crossorigin
|
||||
/>
|
||||
<h2 class="listing-heading">{{ housingLocatio()).name }}</h2>
|
||||
<h2 class="listing-heading">{{ housingLocation().name }}</h2>
|
||||
<p class="listing-location">{{ housingLocation().city }}, {{ housingLocation().state }}</p>
|
||||
</section>
|
||||
`,
|
||||
|
||||
Reference in New Issue
Block a user