forked from angular/introduction-to-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds better accessible UI with the View button.
- Loading branch information
1 parent
ba4a1c9
commit d67cf0a
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<label for="location-search">Search for a new place</label> | ||
<input id="location-search" #search placeholder="Ex: Chicago"><button | ||
(click)="searchHousingLocations(search.value)">Search</button> | ||
<article *ngFor="let location of results" (click)="selectHousingLocation(location)"> | ||
<article *ngFor="let location of results"> | ||
<img [src]="location.photo" [alt]="location.name"> | ||
<p>{{location.name}}</p> | ||
<p>{{location.city}}, {{location.state}}</p> | ||
<button (click)="selectHousingLocation(location)">View</button> | ||
</article> |