I have a stream of observable data that is similar to this: -
[
{
"WorkId": 1539,
"Name": Exam 1,
"AssessmentTypeId" : 2345,
"AssessmentTypeDescription" : "Exam"
...
},
{
"WorkId": 1540,
"Name": Exam 2,
"AssessmentTypeId" : 2345,
"AssessmentTypeDescription" : "Exam"
...
},
{
"WorkId": 1541,
"Name": Coursework,
"AssessmentTypeId" : 2346,
"AssessmentTypeDescription" : "Coursework"
...
}
]
Each object is an known as an element. What I want to do is display the element data in html tables grouped by the AssessmentTypeId. E.g.
Exam
WorkId Name
1539 Exam 1
1540 Exam 2
Coursework
WorkId Name
1541 Coursework 1
I am fairly new to working with observables and I am little unsure about how to go about this? I am guessing I need to look at using the .groupBy transformation?
Thank you.