I am using bootstrap popover with angular template. I am including the angular template with ng-include directive. The template consists of a popover. I am trying to bring that popover through a angular directive but it's not getting displayed. angular directive
angular.module('app').directive('popover', function () {
return {
link: function (scope, element, attrs) {
$("[data-toggle=popover]").popover();
}
};
});
The following html template is being included from another html page with ng-include directive.
<div>
<span class="title">
<button title="" data-original-title="" class="popper btn-link" popover data-toggle="popover">4 Peoples</button>
<div class="popper-content hide">
<p>
<span> Alex</span>
<a href="#" class="pull-right"></a>
</p>
<p>
<span>Francis</span>
<a href="#" class="pull-right"></a>
</p>
<p>
<span>Mark</span>
<a href="#" class="pull-right"></a>
</p>
<p>
<span>Peter</span>
<a href="#" class="pull-right"></a>
</p>
</div>
</span>
</div>
But, if I click the button the popover is not getting displayed.