How can I select all text in an element?
<div class="wrapper">
<div class="content">Lorem ipsum dolor sit amet.</div>
</div>
"Wrapper" is an ElementRef. How can I select all text (like Hightlight text) in '.content'?
I tried the following but did not succeed:
const selectedElm = selectedRef.nativeElement
(selectedElm.querySelector('.content') as HTMLInputElement).select();
(selectedElm.querySelector('.widget-content') as HTMLInputElement).setSelectionRange(0, 5)