I want to be able to capture the highlighted portion of a text/string from an input field using AngularJS. I'm not really sure of where to start in tackling this problem.
For example, I have a textarea:
<textarea ng-model="input" placeholder="type your input">
How would I be able to capture the parts of the text that the user has highlighted or selected using his/her mouse pointer?