In my TS file I have an HTML string that I am displaying in my HTML file. Within the text, there are span tags with a class called "highlight." I would like to create a tooltip that appears when hovering over this highlight class.
The string/text is stored in a variable named 'text' in the TS file.
'<span class="highlight">It is a long</span> established fact that a <span lass="highlight">re</span><span class="highlight"></span><span class="highlight">ader </span>will be distracted by the <span class="highlight">readable content </span>of a page when <span class="highlight">look</span><span class="highlight"></span><span class="highlight">ing </span>at its layout. The point of using Lorem Ipsum'
Here is the link to my StackBlitz demo: https://stackblitz.com/edit/angular-ivy-2dbum9?file=src%2Fapp%2Fapp.component.html