diff --git a/Frontend/src/app/components/day/day.component.html b/Frontend/src/app/components/day/day.component.html index f03a62e..3379ed0 100644 --- a/Frontend/src/app/components/day/day.component.html +++ b/Frontend/src/app/components/day/day.component.html @@ -1 +1,6 @@ -
day works!
++ Titel: {{event.latest_event_summary}} + Start: {{event.latest_start_date}} + Gelöscht: {{event.changes[event.changes.length-1].is_deleted}} +
diff --git a/Frontend/src/app/components/day/day.component.ts b/Frontend/src/app/components/day/day.component.ts index dcf282e..1afc366 100644 --- a/Frontend/src/app/components/day/day.component.ts +++ b/Frontend/src/app/components/day/day.component.ts @@ -1,4 +1,5 @@ -import {Component, OnInit} from '@angular/core'; +import {Component, Input, OnInit} from '@angular/core'; +import {Event} from '../../models/event'; @Component({ selector: 'app-day', @@ -6,6 +7,7 @@ import {Component, OnInit} from '@angular/core'; styleUrls: ['./day.component.css'] }) export class DayComponent implements OnInit { + @Input() events: Event[]= []; constructor() { } diff --git a/Frontend/src/app/components/week/week.component.html b/Frontend/src/app/components/week/week.component.html index 80639e8..586ec83 100644 --- a/Frontend/src/app/components/week/week.component.html +++ b/Frontend/src/app/components/week/week.component.html @@ -1 +1,3 @@ -week works!
+