I would like to know how I can show the information contained in the attached image, because I have tried it in many ways but there is no way.
I'm using cloud firestore, and for now I get the following:
interface HourTask {
inicio: string;
fin: string;
}
todo: Observable<HourTask[]>;
this.todo = this.asf.collection<HourTask>('extraHours/SAW5riljv0EAU1bp1Dm6/Fecha', ref => {
return ref;
}).snapshotChanges()
.map(actions => {
return actions.map(a => {
//console.log(a);
const data = a.payload.doc.data() as HourTask;
// Me gustaría poder devolver evento, inicio y fin de cada tarea. Adjunto foto
return { event, inicio, fin };
})
});
Thank you very much.
Error capture in WebStorm:
Capture when I launch the app: