Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

164
Views
How to display data from an API into a clickable/highlightable list of buttons Angular

Right now I have a successful API call that shows in the console fine, but I'm not sure now how to display this data in a way like in this picture

Example

At the moment I'm using an array in TS to do so like this:

values = ["Wellbeing","Motivation", "Fitness","Assertiveness", "Productivity",
  "Resilience", "Teamwork","Emotional intelligence","Nutrition","Positivity/Perspective",
  "Communication (verbal)", "Navigating work","Communication (written)","Confidence","Work/Life",]

And called in the HTML:

<div *ngFor="let value of values">
    <button
    #btn
    class= "selection_btn text-center"
    (click)="btn.classList.toggle('selected')"
    (click)="control.setValue(control.value.concat([value])) "
  >{{value}}</button>
    </div>

And these display fine with some CSS styling needed(thats for another question) but how do I replace those values with the API names? The API is set up in JSON like so:

[{"id":16,"categoryId":2,"name":"Culture"},]
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!