feat: add hotel item component and search functionality

This commit is contained in:
Jan K9f 2024-09-10 07:35:29 +02:00
parent f243483688
commit 339dac3999
Signed by: jank
GPG key ID: B267751B8AE29EFE
13 changed files with 97 additions and 9 deletions

View file

@ -0,0 +1,20 @@
import { CommonModule } from "@angular/common";
import { Component, NgModule } from "@angular/core";
import { FormsModule, NgForm, NgModel } from "@angular/forms";
import { Input, Output } from "@angular/core";
import { EventEmitter } from "@angular/core";
@Component({
selector: 'app-search',
standalone: true,
templateUrl: './search.component.html',
imports: [FormsModule],
})
export class SearchComponent {
@Input() public input: string = "";
@Output() inputChange = new EventEmitter<string>();
public update(e: string) {
this.inputChange.emit(e);
}
}