Произошла ошибка в спецификации интерфейса. faqSectionList
в FAQContentDisplayBean
должен быть массив
export interface FAQContentDisplayBean {
oid: number;
faqSectionList: faqSectionList[];
}
И вам нужно l oop через массив, чтобы получить summaryTitle
.
<ng-container *ngFor="let faqSection of faqSectionlist.FAQContentDisplayBean.faqSectionList">
{{ faqSection.summaryTitle }}
</ng-container>
Обновление - доступ text
свойство в faqSubsectionList
faqSubsectionList
является массивом в faqSectionList
. Поэтому используйте внутренний l oop для доступа ко всем свойствам faqSubsectionList
.
<ng-container *ngFor="let faqSection of faqSectionlist.FAQContentDisplayBean.faqSectionList">
{{ faqSection.summaryTitle }}
<ng-container *ngFor="let faqSubSection of faqSection.faqSubsectionList">
{{ faqSubSection.text }}
{{ faqSubSection.linkURL }}
</ng-container>
</ng-container>