CreativeBulma / bulma-tooltip

Display a tooltip attached to any kind of element, in different position.
MIT License
76 stars 40 forks source link

tooltip not working in angular 11 #20

Open raosaddam opened 3 years ago

raosaddam commented 3 years ago

I'm trying to update tooltip text dynamically in angular project. I have tried both text interpolation and attribute binding but none of them works.

Text interpolation eg:

<span class="has-tooltip-arrow" data-tooltip="{{gettooltip()}}">
       <fa-icon class="pl-1" [icon]="['far', 'info-circle']"></fa-icon>
 </span>

Attribute binding eg:

<span class="has-tooltip-arrow" [data-tooltip]="gettooltip()">
       <fa-icon class="pl-1" [icon]="['far', 'info-circle']"></fa-icon>
 </span>

Tooltip package version "@creativebulma/bulma-tooltip": "^1.2.0",

ng version

Capture