title: ionic popup close not working
body: <p>I have created an ionic app where a popup window is opened to ask user to rate this app if he did not rate this app previously. Ionic popup appear correctly, but my problem is, user have to click/tap on cancel button twice to close popup and sometimes click/tap is not working. </p>
  
  <p>My code is given below: </p>
  
  <pre><code> (function() {
  
        $scope.data = {}
  
        var myPopup = $ionicPopup.show({
          template: '&lt;input type="range" ng-model="data.user_ratting"&gt;',
          title: 'Do you want to rate this app?',
          scope: $scope,
          buttons: [
            { text: 'Cancel' },
            {
              text: '&lt;b&gt;Save&lt;/b&gt;',
              type: 'button-positive',
              onTap: function(e) {
  
               }
            }
         ]
    });
  
      myPopup.then(function(res) {
        console.log('Tapped!', res);
      });
  
   })();
  </code></pre>
  
  <p>How can I solve this problem??</p>