I am trying to manually close a bootstrap popover to get it to close when I click anywhere on the document or body that isn\'t the popover.
Since Angular UI Bootstrap 1.0.0, there is a new outsideClick trigger for tooltips and popovers (introduced in this pull request. In Angular UI Bootstrap 2.0.0, the popover-trigger has been modified to use angular expressions (Changelog), so the value has to be put in quotes. This code will work with current versions of angular-ui:
This code will work with old versions of Angular UI Bootstrap (before 2.0.0):