Close AngularStrap popover

前端 未结 5 1012
半阙折子戏
半阙折子戏 2021-01-06 11:33

When I click a button, it appears a popover which can be closed if you click the button inside the popover. However, if you click another button to open a popover, you will

5条回答
  •  我在风中等你
    2021-01-06 11:49

    Try to add ng-click="$hide()" on the dismissable element of the popover. I.E.:

    Close
    

    It's not included in the documentation but it works for me, iff you use data-template for popover content, haven't tried with other opened popover yet.

提交回复
热议问题