720kb / angular-tooltips

Angularjs tooltips module, add tooltips to your elements - https://720kb.github.io/angular-tooltips
351 stars 157 forks source link

how to use show triggers? #183

Closed ironchef1369 closed 8 years ago

ironchef1369 commented 8 years ago

I've got a $rootScope.$broadcast('testEvent'); happening that I'm trying to the the tooltip show up on, but I'm not having much luck getting the directive to be listening. Am I thinking that the listener setup on the tooltip doesn't work in that way?

I set the tooltip-show-trigger="testEvent mouseover" and anticipated it showing up when the broadcast was called, but its not doing so.

Any ideas?

45kb commented 8 years ago

Hi @ironchef1369 the trigger listen to mousevents not events you launch.

My suggestion would be to trigger mouseover or click on tooltip when your event is launched.