title: How to submit a form with "Enter" in AngularJS?
body: <p>I have a search form without a submit button. How can I route to <code>#!/result</code>, by pressing the enter key?</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;form ng-controller="searchCtrl"&gt;
     &lt;input ng-href='#!/result' type="text"  placeholder="Поиск"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>App.config(['$routeProvider',function($routeProvider){
          $routeProvider
              .when('/result',{
                  templateUrl:'../views/result.html',
                  controller:"searchCtrl",})  
  }]);
  </code></pre>