title: Hide the iOS soft keyboard AngularJS
body: <p>I need to close soft keyboard on iOS simply clicking outside of input field in Angular app.</p>
  
  <p>I found part of solution:</p>
  
  <pre><code>    $scope.hideKeyboard = function() {
       document.activeElement.blur();
       var inputs = document.querySelectorAll('input');
       for(var i=0; i &lt; inputs.length; i++) {
        inputs[i].blur();
       }
      }; 
  
  &lt;input type='text' ... ng-blur='hideKeyboard()' /&gt;
  </code></pre>
  
  <p>but ng-blur does not help me.</p>
  
  <p>something like this doesn't work.</p>