Hello, I am not so good describing everything but hope you understand my issue.
I returned from firebase an array of items, below is the code, but I want to create an array from a specific variable from respuestas with a for, but when I type: this.respuestas.item, it says: Property ‘item’ does not exist on type ‘Respuestas’
Thank you
Below is the code on how I get the items from my service.ts from firebase:
respuestas: Respuestas;
getRespuestas(): void {
this.examenService.getRespuestas().subscribe((suceso: Respuestas) => {
this.respuestas = suceso.filter((respuestas: Respuestas) => {
return respuestas;
});
});
console.log(this.respuestas)
}