popular page: using dynamic entry list

This commit is contained in:
X4Lo committed 2024-04-01 21:23:44 +00:00
1 parent a00463c06f
commit fec7e2242c
1 file changed
+6 -8
@@ -8,22 +8,20 @@
<a href="javascript:;"> <a href="javascript:;">
</a> </a>
</li> </li>
<li class="breadcrumb-item active" aria-current="page">Popular</li> <li class="breadcrumb-item active" aria-current="page">Trending</li>
</ol> </ol>
</nav> </nav>
</div> </div>
<div class="ms-auto"> <div class="ms-auto">
<div class="btn-group"> <div class="btn-group">
<button type="button" class="btn btn-outline-dark" [class.active]="activeComponent === true" <button type="button" class="btn btn-outline-dark" [class.active]="entryType === true"
(click)="showComponent(true)">Movies</button> (click)="setEntryType(true)">Movies</button>
<button type="button" class="btn btn-outline-dark" [class.active]="activeComponent === false" <button type="button" class="btn btn-outline-dark" [class.active]="entryType === false"
(click)="showComponent(false)">TV-Series</button> (click)="setEntryType(false)">TV-Series</button>
</div> </div>
</div> </div>
</div> </div>
<!--end breadcrumb--> <!--end breadcrumb-->
<app-dynamic-entry-list [entries]="entries"></app-dynamic-entry-list>
<app-entry-list *ngIf="activeComponent === true" [isMovies]="true" [type]="'popular'"></app-entry-list>
<app-entry-list *ngIf="activeComponent === false" [isMovies]="false" [type]="'popular'"></app-entry-list>