With the ng-repeat
directive can I store two different variables?
Example:
ng-repeat="valor1 in valores1 & valor2 in valores2"
I have problems getting the key
of my string in Firebase 3 and I want to extract the key
. My code is as follows:
var query = firebase.database().ref("path").orderByKey();
query.once("value")
.then(function(snapshot) {
snapshot.forEach(function(childSnapshot) {
var key = childSnapshot.key; console.log($scope.key);
var childData = childSnapshot.val();
$timeout(function() {
$scope.coupons = snapshot.val();
});
});
});