Handling uncaught exception
Edit in plnkrSteps involved
- Use $provide service in config section as shown below
Note:We need to customize the handler action
In the example shown below $scope is not defined. This exception is handled and alert is shown to the user