Closed alearcy closed 10 years ago
Hi @alearcy, I've added a little more documentation to the README that may help to explain how the plugin works. Also, I'd suggest taking a close look at the profile and websites examples.
If you are still experiencing problems after that then can you post your code somewhere and link to it here so that I can see what is going on behind the scenes?
Also, I'm finishing off some work on an angularjs binding for delta pouch that should make it very easy to use delta pouch. Please stay tuned!
Thanks @redgeoff for your reply. I'm a little bit confuse :-D In the code posted before, I simply did a get to the doc, after created it with pouch.save, and then updated it with pouch.save (in my code pouch.save it's equal to your db.save). Correctly, delta-pouch create a new document, but the owners array inside it was deleted. Did I get doc with delta-pouch plugin method or can I get it with simple pouch.get (db.get)?
I can't share with you my code because it's a private project. IMHO, the problem is $id that isn't correctly create and then update it.. If this was your code, what would you do? if you can suggest me some solutions, it would be great, otherwise I will wait for your Angular adapter for test it.
Hi @redgeoff, should I consider this issue unresolved? If not, I will waiting for your reply ;-)
Hi! I'm Italian developer. I'm using delta-pouch within Ionic Framework app (AngularJs). I posted a Stackoverflow answer here. I created a new territory object:
and the console log response is:
after that, I update the document with this code:
Now, instead of having the updated document, I have the old one and a completely new one without owners array field...
Did I do something wrong or it is a bug?
Thanks!