diff --git a/src/app/app.module.ts b/src/app/app.module.ts index e61097a..52befd7 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -8,6 +8,7 @@ import { MenuComponent } from './menu/menu.component'; import { MealComponent } from './meal/meal.component'; import { RestaurantsComponent } from './restaurants/restaurants.component'; import { HttpClientModule } from '@angular/common/http'; +import { PermanentComponent } from './permanent/permanent.component'; @NgModule({ declarations: [ @@ -15,7 +16,8 @@ import { HttpClientModule } from '@angular/common/http'; RestaurantComponent, MenuComponent, MealComponent, - RestaurantsComponent + RestaurantsComponent, + PermanentComponent ], imports: [ BrowserModule, diff --git a/src/app/meal/meal.component.html b/src/app/meal/meal.component.html index 21ae7d2..3925c5f 100644 --- a/src/app/meal/meal.component.html +++ b/src/app/meal/meal.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/app/meal/meal.component.ts b/src/app/meal/meal.component.ts index 7d1e5d0..c282198 100644 --- a/src/app/meal/meal.component.ts +++ b/src/app/meal/meal.component.ts @@ -8,6 +8,7 @@ import { Meal } from '../models/meal/Meal'; }) export class MealComponent implements OnInit { @Input() meal: Meal; + @Input() index: number; constructor() { } diff --git a/src/app/menu/menu.component.html b/src/app/menu/menu.component.html index 52ab48a..4c64b57 100644 --- a/src/app/menu/menu.component.html +++ b/src/app/menu/menu.component.html @@ -1,6 +1,6 @@ - diff --git a/src/app/restaurants/restaurants.component.ts b/src/app/restaurants/restaurants.component.ts index 7a371b8..127ac1f 100644 --- a/src/app/restaurants/restaurants.component.ts +++ b/src/app/restaurants/restaurants.component.ts @@ -32,7 +32,7 @@ export class RestaurantsComponent implements OnInit { const dayName = this.days[d.getDay()]; this.lunchService.getRestaurantsForDay(dayName).subscribe( restaurants => { for (let i = 0; i < restaurants.length; i++) { - this.restaurants[i].menus = restaurants[i].menus; + this.restaurants[i].daily = restaurants[i].daily; } }); } @@ -40,7 +40,7 @@ export class RestaurantsComponent implements OnInit { getAllDaysUpdate(): void { this.lunchService.getRestaurants().subscribe( restaurants => { for (let i = 0; i < restaurants.length; i++) { - this.restaurants[i].menus = restaurants[i].menus; + this.restaurants[i].daily = restaurants[i].daily; } }); } diff --git a/src/styles.css b/src/styles.css index e55c98c..020c21e 100644 --- a/src/styles.css +++ b/src/styles.css @@ -16,6 +16,7 @@ .price { float: right; + font-family: "Courier New"; } .mealday { @@ -39,6 +40,10 @@ } .soup { + background: #ffe4; +} + +.firstmeal { border-top: 0px solid black !important; }