[AngularJS] Click to Edit(PUT) with reference (Help)

2014-05-22 Thread Mathias Christensen
Hello everyone! I'm trying to make this 'click to edit' app, but doesn't seem to work. HTML: tr ng-repeat=customers in customerList | filter:query | orderBy:sortField:reverse td span editable-text=customers.doc.company e-name=company

Re: [AngularJS] Delete/PUT by ID/rev ///Help

2014-05-21 Thread Mathias Christensen
Eric Eslinger you did it!! You totally just made my day. The problem was, that in my Ng-click I should define it as: ng-click=removeCustomer(customers.doc.id, customers.doc.rev) So thankfull! -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] AngularJS http delete from CouchDB, help please!

2014-05-20 Thread Mathias Christensen
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) {

[AngularJS] Re: AngularJS http delete from CouchDB, help please!

2014-05-20 Thread Mathias Christensen
() { alert('Deleted!'); }); regards, Garry Taylor On Tuesday, 20 May 2014 16:26:29 UTC+1, Mathias Christensen wrote: 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

[AngularJS] Re: AngularJS http delete from CouchDB, help please!

2014-05-20 Thread Mathias Christensen
By the way Garry, I've also tried stuff like this: scope.removeCustomer = function (_id, _rev) { http.delete('http://127.0.0.1:5984/_utils/document.html?customers/' + _id + '?rev=' + _rev, _id, _rev).then( alert ('Deleted!')); }; It says deleted in a pop-up but it's not.

[AngularJS] Delete/PUT by ID/rev ///Help

2014-05-20 Thread Mathias Christensen
Hey guys! I'm pretty stuck at the moment and hope that I could get some help here. I'm using coucDB to store data. I want to Delete documents by ID, but seems like my code ain't working. I'm really stuck. This is how I GET my datas, and it works:

[AngularJS] Re: Help! I got troubles with my AngularJS delete(by.id)

2014-05-15 Thread Mathias Christensen
should put those functions out of this promise. Em quinta-feira, 15 de maio de 2014 08h45min59s UTC-3, Mathias Christensen escreveu: Hello everyone! I'm using Couchdb to store my data. and createNewCustomer + the list of customers works fine. I need help to delete. This is my ng-click

[AngularJS] Re: Help! I got troubles with my AngularJS delete(by.id)

2014-05-15 Thread Mathias Christensen
out of this promise. Em quinta-feira, 15 de maio de 2014 08h45min59s UTC-3, Mathias Christensen escreveu: Hello everyone! I'm using Couchdb to store my data. and createNewCustomer + the list of customers works fine. I need help to delete. This is my ng-click: tda ng-click

Re: [AngularJS] Re: Help! I got troubles with my AngularJS delete(by.id)

2014-05-15 Thread Mathias Christensen
= true; }); }]); It should work. 2014-05-15 9:13 GMT-03:00 Mathias Christensen mathias...@gmail.comjavascript: : I've done that, but still not working. I do have in mind, that maybe I should store my data before it can get it by id or something? I'm quite new to angularjs