3
I tried to put a function in jQuery within a directive, but it’s not working. I searched and found in several places talking about jqLite, but I could not convert jQuery to jqLite.
$('[data-toggle="tooltip"]').mouseleave(function () {
$(this).tooltip('hide')
});
$('[data-toggle="tooltip"]').on("click", function () {
$(this).tooltip('hide')
});
You already have jquery installed in your application?
– Anderson Saraiva
Yes! I need to encapsulate this code in the directive, but I’m not sure how to do it
– Danielle Rodrigues