title: Pass input value to controller on enter or button click
body: <p>I'm trying to get started learning AngularJS for an Ionic app I'm working on, and I'm having a little trouble understanding AngularJS having had most previous experience on jQuery which focuses on DOM manipulation rather than frameworking.</p>
  
  <p>If I have the following markup:</p>
  
  <pre><code>&lt;label class="item-input-wrapper"&gt;
    &lt;i class="icon ion-ios7-chatbubble placeholder-icon"&gt;&lt;/i&gt;
    &lt;input type="text" placeholder="Send a message..."&gt;
  &lt;/label&gt;
  &lt;button class="button button-clear button-positive"&gt;
    Send
  &lt;/button&gt;
  </code></pre>
  
  <p>How can I pass the value of the input on to the controller when enter or send is clicked? I'm working on a chat app, so I believe that a model approach is needed so that the message thread can be automatically updated but other than that I have no idea.</p>
  
  <p>Could someone help me out or at least point me in the right direction?</p>