title: Find selected text in textarea with Angular Material 2
body: <p>How do you find the selected text in a <code>textarea</code> in an <a href="https://github.com/angular/material2" rel="nofollow noreferrer">Angular Material 2</a> input component? I need to create a directive for it.</p>