Assign dynamic value to swipe button


#1

************* Solved *************

All my data is displaying great, I can display the KEY () I’m looking for. How do I attach the KEY value to my swipe button ?

firebase.database().ref('users/' + $scope.user + '/cars')
         .on('value', function(snapshot) {
            $scope.cars = snapshot.val();
            console.log('A----->');
            console.log('snapshot', JSON.stringify(snapshot.val()));
            $scope.$apply();
            
            $scope.completeCars = function (){
             alert('item ' + $scope.key);
             }
            
          });