I have the following template:
export interface Perguntas{
historico:[{id_historico: number, resposta_historico: string}]
}
In my ts file I perform an http request for a service that returns this data to me, if I give a console.log (this.questions), I get my data as follows:
I need to iterate through this data in my template, I tried something like:
<ion-card *ngFor="let pergunta of perguntas; let i = index">
<p>{{pergunta.data}}</p>
Here it works correctly, my problem is in iterating the historical array, I tried:
<div class="message">{{pergunta.historico.pergunta_historico}}</div>
Why does not it work? No error message is displayed on my console, however the value is not shown.