I have some data in firebase in the url "https://wpladv.firebaseio.com/adventure" and I have the following code in my js file:
.factory('dataUpdate', ['angularFireCollection', function(angularFireCollection) {
var dbUrl = 'https://wpladv.firebaseio.com/adventure';
return {
adventures: function(){
var cat = '/adventure';
return angularFireCollection(dbUrl + cat);
}
}
}])
I also have the following code in my HTML
<ul class="unstyled">
<li ng-repeat="adventure in adventures">
<div class="well">
<h4>{{adventure.name}}</h4>
<h5><em>{{adventure.desc}}</em></h5>
<p>{{adventure.theme}}</p>
<p>{{adventure.like}}%</p>
<p>Taken by {{adventure.used}}</p>
</div>
</li>
</ul>
The data in firebase is in JSON. My question is how do i display the data in the url using angularfire collection object? I am new to angularfire and any suggestion will be appreciated. Thanks in advance.