angular valuechanges get id

JavaScript
ngOnInit() {
  this.myEventList = this.firestore
    .collection('eventList')
    .valueChanges({ idField: 'eventId' });
}
Source

Also in JavaScript: