i have a situation where i have to put nested ng-repeat, when i am trying to get the $id of first ng-repeat i got it without any problem, but when i tried to get the $id of second ng-repeat (marked red in picture below) i got undefined.
my Firebase structure is as follows
HTML Code and Controller are here
angular
.module('starter')
.controller('feedController', function($scope, $firebaseRef, $firebaseArray) {
$scope.allRequests = $firebaseArray($firebaseRef.requests);
$scope.allRequests.$loaded(function() {
console.log(arguments);
})
})
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<span ng-repeat="items in allRequests">
<!-- this works fine -->
{{items.$id}}
<div ng-repeat="item in items">
<!-- getting undefined here... -->
{{item.$id}}
</div>
</span>
i need $idof second ng-repeat, any help will be appreciated.


itemslook like ?itemsdivinside inline elements likespanitemsobject or youallRequestsobject ? Are you looking for the id0347a3c0-..or theKFJek...?