When I retrieve specific data as an array from firestore, the value appears in the console.log() but I am unable to retrieve the specific data from the array itself.
Here is my event.ts:
import { Event } from '../../models/event';
invitedEvents: Event[] = [];
this.invitedEvents = invitedEvents;
console.log(invitedEvents, invitedEvents.name);
On console.log():
https://i.sstatic.net/Prevv.png
As you can see, the invitedEvents.name
returns a value of undefined. I am sure there is a proper way of retrieving the value of name, please send help.