How can I store firebase objects information into an array?
this.events$ = this.afDatabse.list('/events/').valueChanges().subscribe(data => {
console.log(data);
})
This one:
public events: CalendarEvent[] = [{}]
export interface CalendarEvent {
start: Date;
end?: Date;
title: string;
color: EventColor;
actions?: EventAction[];
allDay?: boolean;
}
I’m trying to pass events to angular calendar and display them. Possibly I will need too convert data to UTC.
Thank you