I'm using a JSON API with Angular 4 frontend, now I'm trying to show the data of this JSON Object.
I used the following code:
<div *ngFor="let Questionnaire of struc.data">
<span>{{Questionnaire.attributes.content.headline}}</span><br>
<span>{{Questionnaire.attributes.content.text}}</span><br>
<span>{{Questionnaire.attributes.content.question}}</span>
</div>
<div *ngFor="let Questionnaire of struc.data">
<li>{{Questionnaire.attributes.content.answers}}</li>
</div>
It works, but I get my answer in the format:
- überhaupt nicht,Sehr selten,einige Male,häufig,sehr häufig
instead of looking like this:
- überhaupt nicht
- Sehr selten
- einige Male
- häufig
- sehr häufig
What's wrong with my code?