How to handle 'Possibly unhandled rejection: backdrop click' in a general way

后端 未结 4 750
旧时难觅i
旧时难觅i 2021-01-07 18:03

I have an angular service for handling modals:

angular.module(\'myApp\').service(\'ModalService\', function($uibModal) {
  function open(options) {
    retur         


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-07 18:24

    use this

     $uibModal.open({
                        ////your code......
    }).result.then(function(){}, function(res){})
    

    now it will not give you error

提交回复
热议问题