title: How to open ionicPopup on click of ionicActionSheet option?
body: <p>I am attempting to open a popup when the user hits the 'custom' button on an actionsheet and I cannot figure out how to interact between the two.  My best guess is below, as when I call ng-click="showPrompt()" in the view, the popup is triggered, but when I try to do it from within the buttonClicked event on the actionsheet, it's a no-go.</p>
  
  <pre><code>.controller('TablesCtrl', function($scope, $ionicPopup, $ionicActionSheet) {
      $scope.tables = [];
  
      /* Choose Number of Guests */
      $scope.showActionsheet = function($ionicPopup) {
          $ionicActionSheet.show({
            titleText: 'How many guests?',
            buttons: [
              { text: '1' },
              { text: '2' },
              { text: '3' },
              { text: '4' },
              { text: '5' },
              { text: '6' },
              { text: 'Custom' }
            ],
            cancelText: 'Cancel',
            cancel: function() {
              console.log('CANCELLED');
            },
            buttonClicked: function(index, $ionicPopup) {
              console.log('BUTTON CLICKED', index);
              if(index==6){showPrompt();}
              return true;
            }
          });
        };
      /* CUSTOM Number of Guests */
      $scope.showPrompt = function() {
          var myPopup = $ionicPopup.show({
          template: '&lt;input type="password" ng-model="data.wifi"&gt;',
          title: 'Enter Wi-Fi Password',
          subTitle: 'Please use normal things',
          scope: $scope,
          buttons: [
            { text: 'Cancel' },
            {
              text: '&lt;b&gt;Save&lt;/b&gt;',
              type: 'button-positive',
              onTap: function(e) {
                if (!$scope.data.wifi) {
                  //don't allow the user to close unless he enters wifi password
                  e.preventDefault();
                } else {
                  return $scope.data.wifi;
                }
              }
            },
          ]
        });
      };
  })
  </code></pre>