Updated
My question is how to loop the particular array by providing array index data-ng-repeat="scenarios in input.model.Scenarios[1]" instead of looping all arrays data-ng-repeat="scenarios in input.model.Scenarios" ?
For example :
Let's say i have array like this
Scenario[0]
SceId
SceName
Sections[0]
LicencePlates[0]
LpId
LpName
LicencePlates[0]
LpId
LpName
Scenario[1]
SceId
SceName
Sections[0]
LicencePlates[0]
LpId
LpName
LicencePlates[0]
LpId
LpName
Scenario[2]
SceId
SceName
Sections[0]
LicencePlates[0]
LpId
LpName
LicencePlates[0]
LpId
LpName
Angular Code
<div data-ng-app="cpa" data-ng-controller="InputController as input">
<div data-ng-repeat="scenarios in input.model.Scenarios">
<div data-ng-repeat="sections in scenarios.Sections">
<div data-ng-repeat="licensePlates in sections.LicensePlates">
</div>
</div>
</div>
</div>
For above, i'm looping through all array and getting result.
<div data-ng-app="cpa" data-ng-controller="InputController as input">
<div data-ng-repeat="scenarios in input.model.Scenarios[1]">
<div data-ng-repeat="sections in scenarios.Sections">
<div data-ng-repeat="licensePlates in sections.LicensePlates">
</div>
</div>
</div>
</div>
But for above code when i use Scenarios[1] it's loops Scenarios[1] not getting inside Sections[0] and LicencePlates[0].
Output:
SceId : 2
SceName : Scenario2
In real time i'm passing parent $index as array index
<div data-ng-repeat="scenarios in input.model.ParentScenarios" ng-init="ParentScenarioIndex = $index">
<div data-ng-repeat="scenarios in input.model.Scenarios[ParentScenarioIndex]">
{{ .. }}?indexproperty on your object, rather than trying to rely upon the view$indexangular assigns. In general, don't try to do calculations in the view.