Skip to content

Set global default for success/error callbacks#56

Open
itailulu wants to merge 16 commits intoomichelsen:masterfrom
itailulu:master
Open

Set global default for success/error callbacks#56
itailulu wants to merge 16 commits intoomichelsen:masterfrom
itailulu:master

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