feat: add hotel item component and search functionality
This commit is contained in:
parent
f243483688
commit
339dac3999
13 changed files with 97 additions and 9 deletions
14
src/app/HotelItem/HotelItem.component.ts
Normal file
14
src/app/HotelItem/HotelItem.component.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { Component } from "@angular/core";
|
||||
import { ChildComponent } from "../Child/child.component";
|
||||
import { Input } from "@angular/core";
|
||||
import { Hotel } from "./hotel";
|
||||
|
||||
@Component({
|
||||
selector: 'app-hotel-item',
|
||||
standalone: true,
|
||||
templateUrl: './HotelItem.component.html',
|
||||
imports: [ChildComponent],
|
||||
})
|
||||
export class HotelItem {
|
||||
@Input() public hotel!: Hotel;
|
||||
}
|
Reference in a new issue