feat: add star rating component and integrate it in HotelItem
This commit is contained in:
parent
ee61ef13db
commit
e8683dad06
6 changed files with 184 additions and 2 deletions
|
@ -4,12 +4,13 @@ import { Input } from "@angular/core";
|
|||
import { Hotel } from "./hotel";
|
||||
import { CurrencyPipe } from "@angular/common";
|
||||
import { FormsModule } from "@angular/forms";
|
||||
import { StarRatingComponent } from "../star-rating/star-rating.component";
|
||||
|
||||
@Component({
|
||||
selector: 'app-hotel-item',
|
||||
standalone: true,
|
||||
templateUrl: './HotelItem.component.html',
|
||||
imports: [ChildComponent, CurrencyPipe, FormsModule],
|
||||
imports: [ChildComponent, CurrencyPipe, FormsModule, StarRatingComponent],
|
||||
})
|
||||
export class HotelItem {
|
||||
@Input() public hotel!: Hotel;
|
||||
|
|
Reference in a new issue