title: How to return the value of textbox using Ionic?
body: <p>I have a form in Ionic and I am trying to return the value of the textbox, but am having issues. The rest of the form is loading and 'signup' is returned to the console. formData.email isn't bound in the template and neither is anything returned to the console when I type something in and click the button.</p>
  
  <p>Any advice on what to do?</p>
  
  <p>signup.html</p>
  
  <pre><code>&lt;!-- Header --&gt;
  &lt;div class="bar bar-header bar-light"&gt;
  
    &lt;button class="button icon-left ion-chevron-left button-clear button-dark"&gt;Back&lt;/button&gt;
  
    &lt;h1 class="title"&gt;Signup&lt;/h1&gt;
  &lt;/div&gt;
  
  &lt;!-- Space between header and signup form --&gt;
  &lt;div class="spacer" style="width: 300px; height: 50px;"&gt;&lt;/div&gt;
  
  
  &lt;div class="list list-inset"&gt;
  
      &lt;!-- Signup form text fields --&gt;
      &lt;form&gt;
  
          &lt;label class="item item-input"&gt;
              &lt;span class="input-label"&gt;Email&lt;/span&gt;
              &lt;input type="email" ng-model="formData.email"&gt;
          &lt;/label&gt;
  
  
  
          &lt;label class="item item-input"&gt;
          &lt;span class="input-label"&gt;Username&lt;/span&gt;
          &lt;input type="text"&gt;
          &lt;/label&gt;
  
          &lt;label class="item item-input"&gt;
          &lt;span class="input-label"&gt;Password&lt;/span&gt;
          &lt;input type="password"&gt;
          &lt;/label&gt;
  
          &lt;!-- Submit button for signup form --&gt;
          &lt;button on-touch="onTouch()" class="button button-positive button-block"&gt;
              Sign up
          &lt;/button&gt;
  
      &lt;/form&gt;
  &lt;/div&gt;
  
  {{formData.email}}
  </code></pre>
  
  <p>controllers.js</p>
  
  <pre><code>.controller('SignupCtrl', function($scope, $ionicLoading, $state, $stateParams){
      console.log('signup');
  
      $scope.formData = {};
  
      //Go to the guessing page
      $scope.onTouch = function(item,event){
          console.log($scope.formData.email);
      };
  
  
  
  });
  </code></pre>