My goal is to use ng repeat in Angular to iterate through a child array of a multidimensional array. The json object I am working with is as follows:
$scope.items = [{ "id":1,
"BasisA":"1",
"Basis":true,
"personSex":"m",
"isCollapsed":false,
"name":"Mark Polos",
"age":"1955",
"results":[{"1000":{"company_name":"***","model":"***","modelname":"***","pr":222,"rating":4.5,"priority":9,"matching":1},
"1001":{"company_name":"***","model":"***","modelname":"***","pr":228.7,"rating":5.7,"priority":7,"matching":2},
"1002":{"company_name":"***","model":"***","modelname":"***","pr":241.7,"rating":1.9,"priority":4,"matching":3}
}]
}]
I attempted the following approach:
... data-ng-repeat="item in items">
And then for each item in the table:
<tr data-ng-repeat="i in item | orderBy:'insItem.pr'">