Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I display API data as a list in Angular?

I have an array of items

{
    "id": 1,
    "work_description": [
        "Did this and that",
        "Doing this and that",
        "Does that and that",
        "Do this and that"
    ],
    "company_name": "Google",
    "time_range": "April 2021 - Current",
    "position": "Sales"
}

I want to describe work_description as a list in Angular, but what I get is a paragraph of the details.
This is what I have:

• Did this and that, Doing this and that, Does that and that, Do this and that

This is what I want:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

• Did this and that
• Doing this and that
• Does that and that
• Do this and that

Kindly assist

>Solution :

try this

<li *ngFor="let item of obj.work_description">{{item}}</li>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading