Skip to content

Commit

Permalink
Adds better accessible UI with the View button.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkTechson committed Apr 3, 2022
1 parent ba4a1c9 commit d67cf0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/housing-list/housing-list.component.html
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>

0 comments on commit d67cf0a

Please sign in to comment.