title: AngularJS form input gets undefined
body: <p>I use a lot of forms in my app, but for some reason, one of them (the simplest one, actually) doesn't work properly. When I submit it, the value of the input which is given by my console.log is "undefined".</p>
  
  <p>I'm pretty sure it's a very simple mistake, but I can't see it.</p>
  
  <p>I tried to use "form = 'forgottenForm' " in my inputs, I also tried ng-model but it's useless since I'm not displaying the value of "email", I just want to submit it and then perform some database operations.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;form name="forgottenForm" id='forgottenForm' novalidate="" ng-controller="forgottenCtrl"&gt;
      &lt;label class="forgotten-item item item-input"&gt;
          &lt;input type="text" name="forgottenEmail" required&gt;
      &lt;/label&gt;
      &lt;button type="submit" class="button" ng-click="submitForgotten(forgottenEmail)"&gt;Valider&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>JavaScript</strong></p>
  
  <pre><code>angular.module('ionicApp').controller("forgottenCtrl", function($scope, $http, $ionicPopup, $cookies, $rootScope, $window, $q){
      $scope.submitForgotten = function(forgottenEmail){
          console.log(forgottenEmail);
      }
  })
  </code></pre>