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

Need to use $ngBootbox in angular.config #42

Open
dnyaneshwaruttarwar opened this issue Jul 29, 2016 · 0 comments
Open

Need to use $ngBootbox in angular.config #42

dnyaneshwaruttarwar opened this issue Jul 29, 2016 · 0 comments

Comments

@dnyaneshwaruttarwar
Copy link

Hi I'm using ngBootbox in my application I have one query I want to use $ngBootbox.alert(msg) in angular.config. I'm getting error circular dependancy so could you please help me I have injected $ngBootbox in angular.config.
angular.config(function($stateProvider,$logProvider,$provide,$httpProvider) { $provide.decorator("$exceptionHandler",function ($delegate) { return function (exception, cause) { exception.message = "Some error has occured. Please try again, if error persist then please contact help desk: [" + exception.message + "]"; $delegate(exception, cause); $ngBootbox.alert(exception.message); }; }); })

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

1 participant