feat: add star rating component and integrate it in HotelItem

This commit is contained in:
Jan K9f 2024-09-24 07:19:19 +02:00
commit e8683dad06
Signed by: jank
GPG key ID: B267751B8AE29EFE
6 changed files with 184 additions and 2 deletions

View file

@ -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;