// open modal
var modalInstance = $uibModal.open({
templateUrl: 'assets/meeting/modal/end-meeting.modal.html',
controller: modelInstanceController
});
// do something after modal
modalInstance.result.then(function(param) {
// do something here
})
modelInstanceController.$inject = ['$scope', '$state'];
function modelInstanceController($scope, $state) {
$scope.ok = ok;
$scope.cancel = close;
function close() {
// close without sending parameter
modalInstance.close();
// close with sending param
modalInstance.close(param);
}
function ok() {
// do something
}
}