webcss / angular-indexedDB

An angularjs serviceprovider to utilize indexedDB with angular
149 stars 99 forks source link

catch errors and exceptions in promises #20

Closed schmod closed 3 years ago

schmod commented 10 years ago

This is a moderate refactor that does a few things to address #19:

bramski commented 10 years ago

Hey @schmod can you rebase and add your PR to https://github.com/bramski/angular-indexedDB

The project is being taken over there.

schmod commented 10 years ago

Is there a new "official" maintainer?

schmod commented 10 years ago

Nevermind. Just saw #36. Will clean up and issue a new PR sometime in the next few days.

bramski commented 10 years ago

Hi @schmod . There's been a moderate rewrite over at the new repo.

schmod commented 10 years ago

I'll take a look and compare to my own fork to see if there's anything missing. We've been using angular-indexeddb fairly extensively for an internal project, and would love to contribute anything relevant that we have.

bramski commented 10 years ago

Yeah I see you added this "spreadRequest" which turns cursor calls into multiple promises. This is actually handled by .notify now. So if you use .each or .eachBy you can use .notify to receive each item in succession as it's pulled from the DB or use the resolution for the entire result set.