In angularjs is it possible to add global exception handler at one place? So even if you miss to add exception handler for any code user will get a proper message. E.g Something went wrong.
angular.module("app")
.factory("$exceptionHandler", function() {
return function (exception, cause) {
//exception handling here
};
});
From here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With