This package provides a single directive, rs-tooltip
, that can be used as an
element or an attribute.
<rs-tooltip text="This is my text.">I need a tooltip.</rs-tooltip>
<rs-tooltip html="<b>HTML works, too!</b>">I need one, too.</rs-tooltip>
Accepts any string to be displayed as a tooltip when the element receives the hover event. Input to this directive is escaped.
Accepts any string to be displayed as a tooltip when the element receives the hover event. Input to this directive is not escaped. Use caution when using this directive as it can leave you vulnerable to a number of different injection attacks.
Alternatively, we could always use an attribute like: