: : [ngRepeat: dupes] .
, Exception?
. , Error: [ngRepeat:dupes]
- ! . ..
, .
Angular Exception !
In any case, if you want to handle exceptions, you can catch the override $exceptionHandler
:
For instance:
app.config(function($provide) {
$provide.decorator("$exceptionHandler", function($delegate, $injector) {
return function(exception, cause) {
var data = {
message: "Exception: " + exception.message,
stack: exception.stack || "none"
};
alert(JSON.stringify(data));
$delegate(exception, cause);
};
});
});
Demo Plunker
After you can enter some service and transfer all the data of the Exception:
var someService = $injector.get("SomeService");
someService.reportClientError(data).then(function(data) {
}, function(error) {
});
source
share