Hi,
Thanks for your reply.
Firestore is the latest (version 9: modular)
I created variables for each form control (e.g. _title, _subtitle, _location, _eventDate, etc) , then assigned the snapshot data for each variable from the database:
const data = snapshot.data()
this._title = data['title']
this._subtitle = data['subTitle']
...
this._eventDate = data['eventDate']
this.frmEvent.patchValue({
eventDate: this._eventDate.toDate(), // need this as a locale (e.g. 'dd/MM/yyyy')
title: this._title,
...
})
All works fine thank you.
Michael