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
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
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) {
() { 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
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.
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:
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
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
= 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