This commit is contained in:
csimonis 2024-10-01 08:07:13 +02:00
parent 25abd00a4c
commit d510c92719
3 changed files with 55 additions and 38 deletions

View file

@ -0,0 +1,44 @@
import {Injectable} from "@angular/core";
import {Hotel} from "../hotel/hotel";
@Injectable()
export class HotelService {
private hotels: Hotel[] = [
{
"hotelId": 1,
"hotelName": "Buea süßes Leben",
"description": "Schöne Aussicht am Meer",
"price": 230.5,
"imageUrl": "assets/img/heisenberg.jpg",
"rating": 3.5
},
{
"hotelId": 2,
"hotelName": "Marrakesch",
"description": "Genießen Sie den Blick auf die Berge",
"price": 145.5,
"imageUrl": "assets/img/kjan.png",
"rating": 5
},
{
"hotelId": 3,
"hotelName": "Abuja neuer Palast",
"description": "Kompletter Aufenthalt mit Autoservice",
"price": 120.12,
"imageUrl": "assets/img/huy.png",
"rating": 4
},
{
"hotelId": 4,
"hotelName": "OUR Hotel",
"description": "Wunderschönes Ambiente für Ihren Aufenthalt",
"price": 135.12,
"imageUrl": "assets/img/rat.png",
"rating": 2.5
}
];
public get getHotels() {
return this.hotels;
}
}