title: How can I provide callbacks for an AngularStrap or Angular UI Bootstrap Popover, to execute on open and on close?
body: <p>I am using the Angular UI Bootstrap popover ( <a href="http://angular-ui.github.io/bootstrap/#/popover" rel="nofollow">http://angular-ui.github.io/bootstrap/#/popover</a> ) and would like to specify a callback function to execute when it is opened and another for when it is closed.  My use case is that I am using the popover to contain filters for a grid of data.  I would like to load some remote filtering options on open, apply the selected filters only when the popover is closed.</p>
  
  <p>The documentation only appears to support a few basic options but no indication of callback support.  I'm not seeing anything in the source code either.  Is my only option to set an interval function to check periodically if the popover is visible in the DOM?</p>
  
  <p>I'm also considering Angular Strap's popover to achieve the same result, but can't seem to find the option to set callbacks there either.</p>