Does anyone know the Angular directive for spreading long text when hovering over an HTML element? I prefer not to use the jQuery plugin if possible.
Currently the text is truncated using css, but I want to show the remaining characters to the user when hovering over it.
Any alternative solution is also welcome.
My Html:
<div class="name"><span>{{ field.name }}</span>
My CSS:
span {
padding: 0 10px;
font-size: 16px;
font-weight: 100;
line-height: 32px;
text-overflow: ellipsis;
overflow: hidden;
display: block;
white-space: nowrap;
}
source
share