I need some help with ng-repeat of angularJs. I'm trying to render a table using colspan with the following json:
var json = {
"actorActress":[
{
"name":"Angelina Jolie",
"age":45,
"rowspan":2
},
{
"name":"Brad Pitt",
"age":48,
"rowspan":3
}
],
"Films":[
{
"film":"Mr & Mrs Smith",
"other_info":"info1"
},
{
"film":"Tomb Raider",
"other_info":"info2"
},
{
"film":"Troy",
"other_info":"info1"
},
{
"film":"Mr & Mrs Smith",
"other_info":"info2"
},
{
"film":"Fight Club",
"other_info":"info1"
}
]
}
And this is the table that I'm trying to render:
How can I achieve this?
Thanks in advance!
Update - Original Array This is the original array that I receive from Data Base
var OriginallyJson = [
{"name": "Angelina Jolie", "age": 45, "film": "Mr & Mrs Smith", "other_info": "info1"},
{"name": "Angelina Jolie", "age": 45, "film": "Tomb Raider", "other_info": "info1"},
{"name": "Brad Pitt", "age": 48, "film": "Mr & Mrs Smith", "other_info": "info2"}, ... ,]
