Monitor and handle exceptions like a boss in #angularjs
▻https://hackernoon.com/monitor-and-handle-exceptions-like-a-boss-in-angularjs-c5b034404fad?sour
Monitor and handle exceptions like a boss in angularjsPhoto by rawpixel on UnsplashWhy am I writing thisThere might have been times where you would have wished to have better control over your error #logging system. You might have thought about implementing an exception handling mechanism for your angularjs application but what might have been stopping you is the amount of code that you would have to write to achieve it. Also, the amount of restructuring you might have to do to wrap your code in your exception handling mechanism.The problemLets start with analyzing some code that you might have written or might have come across in your application.suspiciousController.jsYou can view the above code here.A quick explanation:This controller has a function doImportantStuff which basically (...)