I'm developing an AngularJS web application. I need to call a jQuery function (doing some changes to my markup), but it seems that using AngularJS break jQuery functionallity. Here is a small sample:
$(document).ready(function () {
$('h1').click(function () {
alert("Title was clicked.");
});
});
See my JSFiddle.
If I only use jQuery this works fine, but if I run it with the AngularJS framework it does not work.
Why?
EDIT1 (Off-topic)
I'm using the AngularJS Bootstrap Popover with a click trigger on an icon. Here is the HTML markup when the icon is not clicked:
<i class="fa fa-circle" popover="My popover text" popover-trigger="click"></i>
When the icon is cliked and the popover is shown, the popover markup is appended to the icon:
<i class="fa fa-circle" popover="My popover text" popover-trigger="click"></i>
<div class="popover right fade in" ...>
<div class="arrow"></div>
<div class="popover-inner">
<h3 class="popover-title ng-binding ng-hide" ng-bind="title" ng-show="title"></h3>
<div class="popover-content ng-binding" bind-html-unsafe="content">My popover text</div>
</div>
</div>
I would like to add a hover CSS class to the i element, when the popover is active.
Can this be accomplish using AngularJS?