Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you please provide some usage examples ? #44

Closed
Yeh-Jack opened this issue Aug 21, 2015 · 2 comments
Closed

Could you please provide some usage examples ? #44

Yeh-Jack opened this issue Aug 21, 2015 · 2 comments

Comments

@Yeh-Jack
Copy link

Usage examples are helpful for figure out how to use this library.

Especially, I like to know how to get the database object for binding onerror event for error handling globally like :

db.onerror = function(event) {
  // Generic error handler for all errors targeted at this database's
  // requests!
  alert("Database error: " + event.target.errorCode);
};

Thank you very much.

@bramski
Copy link
Owner

bramski commented Aug 21, 2015

It's promise based. All errors come from $q error callbacks.
On Aug 20, 2015 9:44 PM, "Yeh-Jack" notifications@github.com wrote:

Usage examples are helpful for figure out how to use this library.

Especially, I like to know how to get the database object for binding
onerror event for error handling globally like :

db.onerror = function(event) {
// Generic error handler for all errors targeted at this database's
// requests!
alert("Database error: " + event.target.errorCode);
};

Thank you very much.


Reply to this email directly or view it on GitHub
#44.

@bramski
Copy link
Owner

bramski commented Oct 14, 2015

Another person has added some additional useage documentation.

@bramski bramski closed this as completed Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants