Skip to content

Instantly share code, notes, and snippets.

@inklesspen
Created July 9, 2013 09:30
Show Gist options
  • Select an option

  • Save inklesspen/5955990 to your computer and use it in GitHub Desktop.

Select an option

Save inklesspen/5955990 to your computer and use it in GitHub Desktop.
/* global angular */
angular.module('myapp.overrides', []).
factory('$exceptionHandler', ['$log', function($log) {
return function(exception, cause) {
// This line comes from the original Angular exception handler.
$log.error.apply($log, arguments);
_rollbar.push(exception);
};
}]).
run(["$templateCache", function($templateCache) {
// Overriding angular-ui-bootstrap templates.
$templateCache.put("template/tabs/tab.html",
"Custom tab.html template");
$templateCache.put("template/tabs/tabset.html",
"custom tabset.html template");
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment