ng-error-handler

ng-error-handler

A localized error handler for AngularJS

Build Status devDependency Status

Dependencies

Demo

An example of how to use the cdevErrorBox directive on the page is available in this fiddle.

Installation

Documentation

cdevDefaultErrorCode

Constant in cdevErrorHandling module

Defines the fallback error code to use.

cdevDefaultErrorMessage

Constant in cdevErrorHandling module

Defines the fallback error message to use.

cdevErrorEventName

Constant in cdevErrorHandling module

Defines the event name to use when notifying through $rootScope.

cdevErrorHandler

Service in cdevErrorHandling module

Provides methods to handle and format errors. The format method will attempt to retrieve a localized error message through $translate service. The service also provides a way to define custom error handlers - case in which the error event will no longer be triggered through $rootScope.$emit method.

cdevErrorBox

Directive in cdevErrorHandling module

Provides a way to display the error received through $rootScope (using cdevErrorEventName), or manually using the methods injected in the current scope.

License

MIT © Cristian Trifan

comments powered by Disqus
This page was last updated over 2 years ago.