title: Get value after hitting enter Angular JS
body: <p>I want to get input value  after hitting enter key ..</p>
  
  <p>My xhtml looks like</p>
  
  <pre><code>                        &lt;div class="medium-12 columns"&gt;
                              &lt;input name="verificationCode" ng-enter="enteredVerificationCode()" ng-model="user.verificationCode" type="text" id="verificationCode" placeholder="Enter Verification Code Here"  /&gt;
                              &lt;div ng-messages="formSubmitted &amp;amp;&amp;amp; signupForm.email.$error"&gt;
                                  &lt;div ng-message="required" class="error"&gt;Verification Code is required.&lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  </code></pre>
  
  <p>As it is in my signupCtrl, my controller looks like:</p>
  
  <pre><code>Controllers.controller("signupCtrl", function($scope, $rootScope, restservice, $cookies) {
  $scope.enteredVerificationCode=function(){
      console.log($scope.user.verificationCode);
  }
  </code></pre>
  
  <p>}</p>