I have an angular service for handling modals:
angular.module(\'myApp\').service(\'ModalService\', function($uibModal) { function open(options) { retur
use this
$uibModal.open({ ////your code...... }).result.then(function(){}, function(res){})
now it will not give you error