apollodec/Apollo/bower_components/ngmap/testapp/scripts/app.js
venbatechnologies@gmail.com d06b1c0cba status file
2017-12-07 11:31:25 +05:30

14 lines
347 B
JavaScript
Executable File

var app = angular.module("myApp", ["ngMap", "plunkr"]);
app.run(function($window, $rootScope) {
/* collect the javascript errors */
$rootScope.jsErrors = [];
$window.onerror = function (message, url, lineNo) {
$rootScope.jsErrors.push({
error:message,
url: url,
lineNumber: lineNo
});
return true;
}
});