I need to display rectangles with text inside them, all above some specific words of a text. To know the size of the rectangle to display, I need to know de length (in pixels) of the word above of which the rectangle will be.
I know it's possible to know the length of a string in JavaScript/JQuery, but I'd like to know if it's possible to do it natively in Angular 6.