Update angular-modal-service.js

remove "close" as controller parameter and add in Scope with new name: closeModal
return promise change name "close" to "onClose".

Good change if you have a controller to access like:
/products/product/show
and via modal, like me, because if you access via URL you get error: 
Error: [$injector:unpr] Unknown provider: closeProvider <- close

Example with new format:
ON CALLER CONTROLLER:

                ModalService.showModal({
                    templateUrl: "views/products/product.show.modal.html",
                    controller: "ProductsProductController",
                    init: {
                        action: 'show'
                    }
                }).then(function(modal) {
                    modal.element.modal();
                    modal.onClose.then(function(result) {
                        console.log('closed');
                        console.log(result); //RETURN  {name: 'test'}
                    });
                });

ON TARGET CONTROLLER:

            $scope.close = function() {
                $scope.closeModal({
                    name: 'test'
                }, 500); // close, but give 500ms for bootstrap to animate
            }

ON HTML MODAL CODE:

&lt;button type="button" class="btn btn-effect-ripple btn-danger" ng-click="close()"  data-dismiss="modal"&gt;Close&lt;/button&gt;