title: Closing ionic popover
body: <p>I have a popover template like:</p>
  
  <pre><code>&lt;ion-popover-view class="fit"&gt;
    &lt;ion-content scroll="false"&gt;
      &lt;ion-list&gt;
        &lt;ion-item ng-click="popoverGotoView(foo, {id: 1})"&gt;
          Option 1
        &lt;/ion-item&gt;
        &lt;ion-item ng-click="popoverGotoView(foo, {id: 2})"&gt;
          Option 2
        &lt;/ion-item&gt;
      &lt;/ion-list&gt;
    &lt;/ion-content&gt;
  &lt;/ion-popover-view&gt;
  </code></pre>
  
  <p>And in controller I have </p>
  
  <pre><code>$scope.popoverGotoView = function(path, arg) {
      $scope.popover.hide();
      $state.go(path, args);
  }
  </code></pre>
  
  <p>Where $scope.popover is get based on ionic docs. Popover shows, on click it goes to another view but it doesn't hide. I tried to debug and it goes to hide method, but inside, ionic is changing popup classes without effect in DOM. Clicking outside popover it hides properly.</p>
  
  <p>What I'm doing wrong?</p>