title: Angular 2 select text on specific input
body: <p>With jQuery, we would select all contents of a specific input on-submit this way:</p>
  
  <pre><code>&lt;form id="target"&gt;
    &lt;input id="input-1" type="text" value="some value" /&gt;
  &lt;form&gt;
  </code></pre>
  
  
  
  <pre><code>$("#target").submit((event) =&gt; {
    event.preventDefault();
    $("#input-1").select();
  });
  </code></pre>
  
  <p>How do we accomplish this with Angular 2?</p>