feat: add hotel details and list components with routing
This commit is contained in:
parent
d773cfe4bf
commit
8dd8b8b438
15 changed files with 181 additions and 66 deletions
7
src/app/hotel-list/hotel-list.component.html
Normal file
7
src/app/hotel-list/hotel-list.component.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<h1>{{'hello' | uppercase | text}}</h1>
|
||||
<app-search [(input)]="search"></app-search>
|
||||
@if (hotels[0].hotelName) {
|
||||
<div *ngFor="let hotel of hotels">
|
||||
<app-hotel-item *ngIf="hotel.hotelName.includes(search)" [hotel]="hotel"></app-hotel-item>
|
||||
</div>
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue