Skip to content

bendrucker/angular-router-exception-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-router-exception-handler

Build Status

Delegate route/state change errors to Angular's $exceptionHandler. For ngRoute and UI-Router.

Overview

The most common source of routing errors are resolve methods which return rejected promises. Routing libraries broadcast an event when this happens and so errors can be difficult to track down. This adds event listeners that forward routing errors to $exceptionHandler, the service that receives thrown errors in Angular code.

Installing

$ npm install angular-router-exception-handler
angular.module('myApp', [
  require('angular-router-exception-handler')
]);

About

Delegate route/state change errors to Angular's $exceptionHandler. For ngRoute and UI-Router.

Resources

License

Stars

Watchers

Forks

Packages

No packages published