I am trying to loop through an array object retrived from Firebase:
var announcementsRef = new Firebase(FIREBASE_URL+'/annoucements');
$scope.announcements = $firebaseObject(announcementsRef);
I display it in console : image.
I tried to display the first object message like this
console.log($scope.announcements[1].message).
But it does not shows me
How can I solve this ?
console.log()for debugging AngularFire data loading is not recommended. To see your announcements, make them visible in your HTML with<pre>{{ announcements | json}}</pre>. That pattern is recommended in the Intro to AngularFire section of the documentation.