I'm trying to dynamically load pop over on lable my code was
$scope.setStatusMessage = function (message) {
var lblClass = "", status = "" , template;
lblClass = "label label-danger";
status = "failed";
template = '<label popover="' + message + '" popover-trigger="mouseenter" class="' + lblClass + '">' + status + '</label>';
return $sce.trustAsHtml(template);
}
my html was
<span data-ng-bind-html="setStatusMessage(statusMessage)"></span>
problem is html code is working but popover not working. may i know the problem with fix.
thanks
UPDATED
OK guys here is the Plunker