{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3669","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3669/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3669/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3669/events","html_url":"https://github.com/angular-ui/bootstrap/issues/3669","id":76408016,"number":3669,"title":"Breaking change in $tooltip service from 0.11.2 to 0.13.0?","user":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-14T16:11:33Z","updated_at":"2015-05-18T20:30:19Z","closed_at":"2015-05-18T20:30:19Z","body":"I have the following tooltip directive that no longer works in 0.13.0 because the object returned by the $tooltip service function no longer has a compile function.  Am I missing something?  Is there a breaking change from 0.11.2 to 0.13.0?\r\n\r\nThe issue appears on the line `var parentLinkFn = compile(element, attrs);` because `compile` is undefined.\r\n```javascript\r\n.directive('myTooltip', [\r\n  '$tooltip',\r\n  '$timeout',\r\n  function($tooltip, $timeout) {\r\n    // Create a popover directive with the ui-bootstrap $tooltip service\r\n    // Arg1: name of this directive\r\n    // Arg2: prefix of configuration directives (tooltip-popup-delay, tooltip-placement)\r\n    // Arg3: The DOM pseudo-event that triggers show/hide\r\n    var tooltipDirective = $tooltip('myTooltip', 'myTooltip', 'showTrigger');\r\n    var compile = angular.copy(tooltipDirective.compile);\r\n\r\n    // register a custom compile function on our directive which decorates the stock compile fn\r\n    tooltipDirective.compile = function customCompile(element, attrs) {\r\n      // Invoke the parent compile function to receive the parent linkFn\r\n      var parentLinkFn = compile(element, attrs);\r\n\r\n      return function popLinkFn(scope, element, attrs) {\r\n\r\n        function showHideTooltip(showHide) {\r\n          $timeout(function() {\r\n            element.triggerHandler(showHide ? 'showTrigger' : 'hideTrigger');\r\n          });\r\n        }\r\n\r\n        // typeaheadPopup directive exposes the active index on the scope\r\n        // Since the $tooltip directive uses isolate scope, we have to reference $parent\r\n        scope.$watch(attrs.myTooltipShow, function(newval) {\r\n          showHideTooltip(!!newval);\r\n        });\r\n\r\n        // Our logic is all set up.  Now invoke the parent link fn\r\n        parentLinkFn(scope, element, attrs);\r\n      };\r\n    };\r\n\r\n    return tooltipDirective;\r\n  }])\r\n```"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/103200434","html_url":"https://github.com/angular-ui/bootstrap/issues/3669#issuecomment-103200434","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3669","id":103200434,"user":{"login":"rvanbaalen","id":220637,"avatar_url":"https://avatars.githubusercontent.com/u/220637?v=3","gravatar_id":"","url":"https://api.github.com/users/rvanbaalen","html_url":"https://github.com/rvanbaalen","followers_url":"https://api.github.com/users/rvanbaalen/followers","following_url":"https://api.github.com/users/rvanbaalen/following{/other_user}","gists_url":"https://api.github.com/users/rvanbaalen/gists{/gist_id}","starred_url":"https://api.github.com/users/rvanbaalen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvanbaalen/subscriptions","organizations_url":"https://api.github.com/users/rvanbaalen/orgs","repos_url":"https://api.github.com/users/rvanbaalen/repos","events_url":"https://api.github.com/users/rvanbaalen/events{/privacy}","received_events_url":"https://api.github.com/users/rvanbaalen/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T20:30:19Z","updated_at":"2015-05-18T20:30:19Z","body":"https://github.com/angular-ui/bootstrap#need-help"}}