title: How to pass model value on close modal popup?(Angularjs)
body: <p>I have one bootstrap modal popup in angularjs.
  My plunker is here : <a href="http://plnkr.co/edit/B50JTWXcgmFMq6oEPxit?p=preview" rel="nofollow">Links</a></p>
  
  <p>My problem is that i want to get selected value on close popup not only on close button .if user want to close from out of area  like black background also need to get selected value.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>modalInstance.result.then(function (selectedItem) {
        $scope.selected = selectedItem;
      }, function () {
  
       // Here i want to get selected item like as above
  
      });
  </code></pre>