I am using angular v1.3.15. My controller displays a big table from an array of objects:
$scope.table = [
{ name: "A",
availableConnection: [
{ id: 1, displayName: "Foo" },
{ id: 2, displayName: "Bar" },
...
]},
{ name: "B",
availableConnection: [
{ id: 1, displayName: "Doo" },
{ id: 2, displayName: "Boo" },
...
]},
...
];
I was wondering if it is better that my controller will hold controller for each cell in the array $scope.table.
<tr ng-repeat="x in table" ng-controller="RowController">
<td>
<select ng-options="a.displayName for a in availableConnection" >
</select>
</td>
</tr>
I cant copy my code because it's inside private network. This example explains what i meant. * Also the whole page got an controller so it means the hole table is inside controller.