app.js 347 B

1234567891011121314
  1. var app = angular.module("myApp", ["ngMap", "plunkr"]);
  2. app.run(function($window, $rootScope) {
  3. /* collect the javascript errors */
  4. $rootScope.jsErrors = [];
  5. $window.onerror = function (message, url, lineNo) {
  6. $rootScope.jsErrors.push({
  7. error:message,
  8. url: url,
  9. lineNumber: lineNo
  10. });
  11. return true;
  12. }
  13. });