0
Well I’m trying to encapsulate my objects. The first Object it maps the first JSON array.
export interface PraticarObject {
id_assunto: number;
nome_assunto: string;
qt_exercicios_concluidos: string;
conteudos: ConteudosPraticarArray[];
}
good so far so good, I can get the id_subjects subject name_subject, qt_exercises, but when I try to get the content.
he returns to me like this
the Conteudospraticararray class is so.
export interface ConteudosPraticarArray {
id_conteudo: string;
nome_conteudo: string;
}
i am using the Observable method in the api to fill in the Praticarobject.
well the problem is he brings me Object and I can’t use it . :(