title: angularjs modal modal-dialog close
body: <p>Please excuse my ignorance but I am new in angularjs, I want to display a popup that has 2 buttons (OK and Cancel) 
  OK : close the popup and the browser
  Cancel : close the popup</p>
  
  <p>I am using modal-dialog to display the popup
  My html code is :</p>
  
  <pre><code>&lt;modal-dialog show='dialogShown' dialog-title='My Dialog'&gt;
            &lt;p&gt;&lt;/p&gt;
            &lt;p&gt;Are you sure ?&lt;/p&gt;
            &lt;button ng-click="closeWindow()"&gt;OK&lt;/button&gt;
            &lt;button ng-click="closeDialog()"&gt;Cancel&lt;/button&gt;
  
  &lt;/modal-dialog&gt;
  </code></pre>
  
  <p>My controller :</p>
  
  <pre><code>var app = angular.module('MyModule', []);
  app.controller('MyCtrl', function ($scope,myservice) {
  
      $scope.dialogShown = false;
      $scope.showDialog = function(){
          $scope.dialogShown = true;
      }
  
      $scope.closeWindow = function(){
          // I need to close the popup AND the window
      }
  
      $scope.closePopup = function(){
          // I need to close the popup 
      }    
  }
  </code></pre>
  
  <p>Thanks in advance for your help.</p>