title: IonicModal not destroying on calling destroy()
body: <p>I am trying to destroy ionic modal using angularjs and this is the button code that hides and destroys the modal</p>
  
  <pre><code>&lt;button style="border: 3px solid red; border-radius:5px; color: #ff6000" class="button button-clear button-positive" ng-click="closeNewPost(1);content= '' "&gt;Close&lt;/button&gt;
  </code></pre>
  
  <p>// Close the new task modal</p>
  
  <pre><code>$scope.closeNewPost = function(index) {
         if (index == 1) {
         $scope.postModal.hide();
          $scope.content = '';
  
         // $scope.postModal.dismiss();
          alert("another option4");
          $scope.postModal.destroy();
  
         } else {
           alert("close option 2");
            $scope.selectModal.hide();
         }
  </code></pre>
  
  <p>The above codes hides the modal but never destroys the modal. Please what is the issue?</p>