I am working on my first AngularJS web-app and have been stuck trying to iterate and parse some data. I am trying to display how many users (and ideally their name) are currently connected to my Firebase, aka {{users}}
.
I am receiving the following output from AngularFire, but cannot parse or iterate through it.
Output from {{users}}
(joe and james are both connected to the firebase)
{"b16b":"joe","e109":"james"}
Code within the main controller:
angularFire(fb_userRef, $scope, "users");
Attempting to display data and/or iterate through all the users: (fail)
<div class="panel right" data-role="panel" data-position="right"
data-display="overlay" id="right-panel">
<h3>{{users.length}} people here</h3>
<div ng-repeat="usr in users"><h1>YES</h1></div>
Any help would be very appreciated!