I've created a simple EmberJS application that lists jobs from a headless CMS. The jobs data from the backend is in this format
[
{
"id": "1234",
"description": "Test description"
"category": "Human Resources"
},
{
"id": "4321",
"description": "Test description"
"category": "Human Resources"
},
{
"id": "5678",
"description": "Test description"
"category": "Information Technology"
}
]
My app displays the results in the order that they're returned as expected but I'd like to group the results by category so that the results are displayed like this:
Human Resources
- 1234
- 4321
Information Technology
- 5678
Thanks in advance for any help.
Note: I'm using EmberJS version 3.19
Aucun commentaire:
Enregistrer un commentaire