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
20
src/app/Search/search.component.ts
Normal file
20
src/app/Search/search.component.ts
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue