Database provides following JSON string.
$scope.items = [
{"Name":"Michael","Region":"Canada","Subject":"Chemistry","Action":"Email"},
{"Name":"Michael","Region":"Canada","Subject":"Biology","Action":"Call"},
{"Name":"Kristen","Region":"USA","Subject":"Chemistry","Action":"Skype"},
{"Name":"Kristen","Region":"USA","Subject":"Physics","Action":"Email"},
{"Name":"Kristen","Region":"USA","Subject":"Chemistry","Action":"Call"},
{"Name":"Kristen","Region":"Europe","Subject":"Chemistry","Action":"Call"},
{"Name":"Kristen","Region":"Europe","Subject":"Biology","Action":"Call"}
];
Currently displaying data like below: (using ng-repeat
)
Name Region Subject Action Michael Canada Chemistry Email Michael Canada Biology Call Kristen USA Chemistry Skype Kristen USA Physics Email Kristen USA Chemistry Call Kristen Europe Chemistry Call Kristen Europe Biology Call
Expected Result (Tabular Format)
Name Region Subject Action Michael Canada Chemistry,Biology Email,Call Kristen USA Chemistry,Physics Skype,Email,Call Kristen Europe Chemistry,Biology Call
Not understood how to use ng-repeat
to get expected result (as shown above).