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

Set global default for success/error callbacks #56

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

itailulu
Copy link

This feature allows you to set default callbacks for success/error.
Setting the callback with the directive attributes on-success and on-error will override the global default.
I'm not sure this implementation of the feature is of best practice.
Please let me know if you have better ideas or any comments on the code.

@coveralls
Copy link

Coverage Status

Coverage decreased (-9.09%) to 90.909% when pulling e878e86 on itailulu:master into ecd6140 on omichelsen:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-9.09%) to 90.909% when pulling 08f4fd4 on itailulu:master into ecd6140 on omichelsen:master.

@omichelsen
Copy link
Owner

Hey, sorry for the late response.

I like your idea and implementation. Would you mind working to get tests added/fixed for this? Otherwise I will try and copy it to my own PR.

@itailulu
Copy link
Author

@omichelsen, I refactored the solution a bit.
This is my first try at writing karma tests - so comments/suggestions are much appreciated.

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

Successfully merging this pull request may close these issues.

4 participants