Skip to content

Instantly share code, notes, and snippets.

@koenoe
Created February 11, 2016 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koenoe/2051f76a8f29d984c2d1 to your computer and use it in GitHub Desktop.
Save koenoe/2051f76a8f29d984c2d1 to your computer and use it in GitHub Desktop.
(function() {
'use strict';
angular.module('app.core')
.config(configure);
configure.$inject = ['$rollbarProvider','config'];
/* @ngInject */
function configure($rollbarProvider, config) {
// Configure Rollbar
if(config.rollbarToken){
$rollbarProvider.init({
accessToken: config.rollbarToken,
captureUncaught: true,
payload: {
environment: config.environment
}
});
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment