Skip to content

Commit

Permalink
POC for table
Browse files Browse the repository at this point in the history
  • Loading branch information
RonanCodes committed May 7, 2024
1 parent 1d0e800 commit 0294e41
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/app/views/search/search.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,28 @@
@if (movieStoreService.movies$ | async; as moviesResponse) {
<small> {{ moviesResponse?.total_results }} total results </small>
<div class="movies">
<!-- TODO: Delete (leave detail for details view) -->
<!-- <table>
<tr>
<td>&nbsp;</td>
<td>Movie Name</td>
<td>Release Year</td>
</tr>
@for (movie of (moviesResponse)?.results; track movie.id) {
<tr class="movie">
<td (click)="goToMovieDetail(movie.id)">
{{ movie.title }}
</td>
<td>
{{ movie.release_date }}
</td>
</tr>
}
</table> -->

@for (movie of (moviesResponse)?.results; track movie.id) {
<div class="movie">
<!-- TODO: Use Mat Table here: -->
<span (click)="goToMovieDetail(movie.id)">
{{ movie.title }}
</span>
Expand Down

0 comments on commit 0294e41

Please sign in to comment.