title.js 282 B

123456789101112
  1. angular.module('NoteWrangler')
  2. .directive('title', function($timeout) {
  3. return function(scope, element) {
  4. $timeout(function(){
  5. $(element).tooltip({ container: 'body' });
  6. });
  7. scope.$on('$destroy', function(){
  8. $(element).tooltip('destroy');
  9. });
  10. }
  11. });