I have a cancel button on my modal and has an on-click function that calls:
onCancelClick: function () {
$uibModalInstance.dismiss()
}
its work but make this error:
Possibly unhandled rejection:
undefined
or when click on esc key:
Possibly unhandled rejection: escape key press
I know I can use below code in my config and turn these type of errors off:
app.config(function ($qProvider) {
$qProvider.errorOnUnhandledRejections(false);
});
but i want to solve it. Do you know how can I fix this?