I have a text element and I want to get the section that is highlighted selection by mouse only, so lets say user writes 123456798 in the textbox and then select 456 with mouse and I want to get 456, how can I do that ? Does angular library provide me something for it ? Couldnt find in methods. Here is my complete html code for the part.
Actually I entered it but needed to remove first and last <> characters
<input type="text" id="dialpadText" call-from-dialpad="startAudioCall()"
ng-model="dialpadText"
ng-change="dialpadTextEntered()"
placeholder="Enter a name or number" autofocus=""
class="ng-valid ng-touched ng-dirty ng-valid-parse ng-modified">