I am having two ng-repeat for child and parent divs as follows
<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 wanna get child and parent indexes. How can I fetch?