angular fire get latest document id code example
Example 1: angular valuechanges get id
ngOnInit() {
this.myEventList = this.firestore
.collection('eventList')
.valueChanges({ idField: 'eventId' });
}
Example 2: how to get firebase document id angular
.valueChanges({ idField: 'propertyId' });