title: Not able to get the updated value from modal back to controller
body: <p>I have a modal and doing some process to update a value from modal and it is not updating from my controller. Please let me know how to get the value($scope.currentItem.value) back from modal to controller. </p>
  
  <pre><code>$scope.showModalForm = function(data, index) {
        $scope.currentItem = data; 
    ngDialog.open(
            {
                template: '/scripts/app/panel/MyInfo.html',
                controller: 'MyInfoController',                
                scope: $scope,
                width:"50%",
  
            })
  };
  
  angular.module('app')
      .controller('MyInfoController', function ($scope,$http, $log) {
          $scope.submit = function() {
              // OPen modal and process sucessfully need to send the approve back to controller
       if(process) {
              $scope.currentItem.value = "Corrected";
       }
       if(!process) {
           $scope.currentItem.value = "Wrong";
        }
  
  }
  }
  </code></pre>