I'm currently faced with the challenge of using an ng-repeat
to iterate through some JSON data that I have imported into Firebase. Below is the snippet of HTML code that I am working with:
<div class="col-md-4" ng-repeat="place in places">
<h3>{{ place.title }}</h3>
</div>
In addition to this, I have declared a variable named placesRef
, that is specifically targeting a child element within my Firebase data called places
. Upon loading the page, I am able to successfully log the objects from the database using console.log
.
var placesRef = new Firebase(FBURL).child('places');
placesRef.once('value', function (snap) {
var places = snap.val();
console.log(places);
});
My main query is regarding how I can implement the ng-repeat directive effectively, in order to display the objects on the webpage.
Any assistance on this matter would be highly valued. Thank you in advance!