title: Angular - bootstrap modal inside ng-repeat - how to update data on the main scope?
body: <p>I am using ng repeat to display a table, the table contains an 'edit' button that opens a modal. Once the data is updated in the modal I dont know how to get the modal scope data back to the main scope data used to generate the table.</p>
  
  <p>Basically I want to be able to use the data from the modal to update the main ng-repeat table. </p>
  
  <p><a href="http://jsfiddle.net/c8gn8hjd/2/" rel="nofollow">Example Fiddle</a></p>
  
  <p>here is the function executed when closing the modal:</p>
  
  <pre><code>$scope.customer = customer;
  
     $scope.ok = function (customer) {
  
        $modalInstance.close($scope.customer);
                      };
  
  });
  </code></pre>
  
  <p>In my example, you can see that the "customer.details" are not updated when updated in the modal.</p>
  
  <p>Thanks in advance for your help.</p>