| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Exceptionless will automatically capture any unhandled errors that are thrown. However, angular errors are sent through an $exceptionHandler service. To fully integrate with angular we need to add an Exceptionless integration for Angular! Doing so will cause Exceptionless to start collecting unhandled Angular errors, 404s, and $log messages quickly.
<script src="bower_components/exceptionless/dist/exceptionless.js"></script>
<script src="bower_components/exceptionless/dist/integrations/angular.js"></script>var app = angular.module('myApp', ['exceptionless']);
app.config(function($ExceptionlessClient) {
$ExceptionlessClient.config.apiKey = 'YOUR_API_KEY';
$ExceptionlessClient.config.setUserIdentity('12345678', 'Blake');
$ExceptionlessClient.config.useSessions();
$ExceptionlessClient.config.defaultTags.push('Example', 'JavaScript', 'Angular');
});We have built a quick Angular sample app you can play around with.
Run the sample app by following the steps below:
We recommend enabling debug logging by calling $ExceptionlessClient.config.useDebugLogger();. This will output messages to the console regarding what the client is doing. Please contact us by creating an issue on GitHub if you need assistance or have any feedback for the project.
Looking for General Exceptionless Documentation, UI Documentation, or Documentation for another Client?
Visit the Primary Exceptionless Documentation Page and go from there.
| Back | FazBrowse Home | New Git URL |