My code includes two ng-repeats for child and parent divs like this:
<div ng-repeat="stage in stages">
<div ng-repeat="step in steps">
<button ng-click="clickedStageAndStep($index)">
</div>
</div>
$scope.clickedStageAndStep = function(index) {
console.log("Step Index: " + index)
};
I need to extract both the child and parent indexes. How can I achieve that?