dwmkerr/angular-modal-service — pull request #15 by brunoporto (2014-11-04 15:40:29+00:00)
Title: Update angular-modal-service.js

Possible to pass variables in the scope of the controller

Example:
ModalService.showModal({
templateUrl: "views/products/product.show.modal.html",
controller: "ProductsProductController",
init: {
action: 'show',
id: _id
}
})

On controller ProductsProductController:
if ($scope.action == 'show') {
console.log('Action: SHOW');
};