Hello everyone!

I'm using couchdb to store some data from my newly project. I need help to 
configure my delete button. My code right now are very basic, I've tried so 
many things now:


        $scope.removeCustomer = function (id) {

            
http.delete('http://localhost:5984/customers/{{#_id}}?rev={{#_rev}}', 
id).then(alert('Deleted!')
            )
        };


When I fill the doc ID and Rev it deletes the doc from couchdb. But I need 
to bind the id and rev by itself. Can you please help me? 

Regards,

Mathias

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to