ng-repeat: access key and value for each object in array of objects
I have an array of objects and I am using an ng-repeat to iterate over them, which is easy. The array looks something like this: $scope.steps = [ {companyName: true}, {businessType: true}, {physicalAddress: true} ]; And my ng-repeat attribute looks like: <div ng-repeat="step in steps"> ... </div> In each iteration, step is equal to one of the objects, as expected. Is there anyway to access both the key and the value of the step object? So that I could do something like this: <div ng-repeat="(stepName, isComplete) in steps"> ... </div> Where stepName == 'companyName' and isComplete == true . I