diff --git a/src/scripts/directives/tooltip.js b/src/scripts/directives/tooltip.js index 32908da..fc0a2f2 100644 --- a/src/scripts/directives/tooltip.js +++ b/src/scripts/directives/tooltip.js @@ -16,7 +16,7 @@ angular.extend(options, attrs); - $(element).tooltip({ + angular.element(element).tooltip({ title: scope.title, placement: options.ngTooltipPlacement, container: options.ngTooltipContainer, @@ -24,7 +24,7 @@ }); scope.$watch('title', function () { - $(element).attr('title', scope.title).tooltip('fixTitle'); + angular.element(element).attr('title', scope.title).tooltip('fixTitle'); }); } };