I've encountered an issue where exceptions occurring outside of controllers or services in plain JavaScript code are not being reported, do not appear in the console, and cannot be handled. For example, if there is an exception within a Car class that is invoked from a controller or service, Angular will not report the error and will just ignore it.
Function Car {
this.drive = function() {
// exception occurs here
}
}
Does anyone have any suggestions on how to effectively catch these exceptions? I am currently using Angular 1.4.