I've implemented Angular Bootstrap UI and successfully added a tooltip to my project.
Snippet of HTML:
<div ng-app="helloApp">
<div ng-controller="helloCtrl as hello">
<a tooltip-trigger="click" tooltip-placement="bottom" uib-tooltip-html="<h1 ng-click='hello.clickInsideToSeeTheWorld()'>Click again!</h1>">Click me to see the tooltip</a>
</div>
</div>
Javascript snippet:
angular.module('helloApp', ['ui.bootstrap'])
.controller('helloCtrl', helloCtrl)
function helloCtrl() {
var vm = this;
vm.clickInsideToSeeTheWorld = function() {alert(123)}
}
However, I am facing an issue where the ng-click
event does not trigger when the tooltip is open. Even though there are no errors in the console, it seems that the HTML is not compiled. I need help figuring out how to properly compile the tooltip html so that the ng-click
functionality works as expected.