clean up + renamed functions

This commit is contained in:
X4Lo committed 2024-04-01 21:24:24 +00:00
1 parent 04de49b8d3
commit 3dabba1b47
2 files changed
+3 -37

No files matched your search

@@ -1,37 +1,3 @@
<!-- <div class="movies-container">
<div class="movie-card" *ngFor="let n of [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]">
<div class="card-head">
<img class="card-img"
src="https://cdn.cinematerial.com/p/297x/4vmodacg/the-bad-guys-movie-poster-md.jpg?v=1639499851" alt="">
<div class="card-overlay">
<div class="rating">
<i class='bx bx-star'></i>
<span>6.5</span>
</div>
<div class="bookmark">
<i class='bx bxs-bookmark'></i>
</div>
<div class="info">
<i class='bx bx-info-circle'></i>
</div>
</div>
<div class="card-body">
<h3 class="card-title">Doctor Strange and the multiverse of madness</h3>
<div class="card-info">
<span class="Year">2021</span>
<i class="card-dot"></i>
<span class="duration">137 min</span>
</div>
</div>
</div>
</div>
</div> -->
<!-- Entries Container/Grid -->
<div class="movies-container">
<app-main-card *ngFor="let entry of entries" [entry]="entry"></app-main-card>
@@ -28,15 +28,15 @@ export class EntryListComponent implements OnInit {
} else {
console.log("page n'existe pas");
this.tmdbService
.getPopularMovies(this.currentPage, this.isMovies)
.getPopular(this.currentPage, this.isMovies)
.subscribe((myEntries) => {
this.pages[this.currentPage] = myEntries
this.pages[this.currentPage] = myEntries;
this.entries = this.pages[this.currentPage];
});
}
} else if (this.type == 'trending') {
this.tmdbService
.getTrendingMovies(this.currentPage, this.isMovies)
.getTrending(this.currentPage, this.isMovies)
.subscribe((myEntries) => (this.entries = myEntries));
}
}