title: Custom Ionic Framework Popup
body: <p>I have an IONIC popup, See image below in the link.</p>
  
  <p>I have an issue when i click on the buttons Arrange Coupon, It redirect me to the next screen. It is fine.But the popup doesn't hide. Please help me.</p>
  
  <p>Thanks.</p>
  
  <p><a href="http://awesomescreenshot.com/0e55lzsl39" rel="nofollow">http://awesomescreenshot.com/0e55lzsl39</a></p>
  
  <pre><code>var myPopup;
  $scope.showPopup = function() {
   myPopup = $ionicPopup.show({
  
      template: '&lt;a class="button button-block button-energized" href="#/redeem"&gt;Arrange Coupon&lt;/a&gt; &lt;a class="button button-block button-balanced"&gt;Add Coupon&lt;/a&gt; ',
  
      title: 'Coupon Management',
  
      buttons: [{
  
         text: '&lt;b&gt;OK&lt;/b&gt;',
  
         type: 'button button-small button-positive',
  
         onTap: function(e) {
  
         }
  
      }, ]
  
   });
   myPopup.then(function(res) {
      if (res) {
  
            console.log(res);
      }
      else{
        alert('here');
      }
  
   });
  </code></pre>
  
  <p>};</p>