title: Angular on keyup.enter send the current text of an input to a method
body: <p>I have an input which I want to get the text that it's currently got and send it to a method.</p>
  
  <p>Here is the code:</p>
  
  <p>app.component.html</p>
  
  <pre><code>&lt;input type="text" (keyup.enter)="sendit()" /&gt;
  </code></pre>
  
  <p>app.component.ts</p>
  
  <pre><code>sendit() {
      console.log(The text in the input);
  }
  </code></pre>
  
  <p>How do I do this?</p>