I am currently utilizing the angular-strap popover feature. To learn more about it, visit
According to the documentation, when an onBeforeShow function is provided, it should be called before the popover is displayed. However, I am experiencing issues with this functionality.
<div class="bs-docs-section" ng-controller="PopoverDemoCtrl">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
<div id="popoverId" bs-popover data-trigger="hover" on-before-show="shouldBeCalledBeforePopover()" data-content-template="demo.html" delay="200" data-placement="bottom-right">
Hover over me!!!
</div>
</div>
</div>
$scope.shouldBeCalledBeforePopover = function(){
alert("Before popover");
}
The expected alert message does not appear as intended.
For a working example, you can view the plunker at http://plnkr.co/edit/R8mRXSAcXW5KKmKDwGPS?p=preview