title: Focusing an input field in Ionic not working
body: <p>I've been doing my research and it seems that this is not an uncommon issue or question in the Ionic community. I have a simple form with a view inputs:</p>
  
  <pre><code>&lt;input type="text" id="firstName" placeholder="First Name" ng-model="registerData.firstName"&gt;
  ...
  </code></pre>
  
  <p>In my controller I then try to focus the field:</p>
  
  <pre><code>document.getElementById("firstName").focus();
  </code></pre>
  
  <p>Of course it doesn't work, so as a few posts that I've seen suggests, I have to add the <a href="https://github.com/driftyco/ionic-plugin-keyboard" rel="noreferrer">Ionic Keyboard Plugin</a> . I do so by running:</p>
  
  <pre><code>cordova plugin add https://github.com/driftyco/ionic-plugins-keyboard.git
  </code></pre>
  
  <p>And then I apparently have to set this in my <code>config.xml</code> as wel:</p>
  
  <pre><code>&lt;preference name="KeyboardDisplayRequiresUserAction" value="false"/&gt;
  &lt;feature name="Keyboard"&gt;
    &lt;param name="ios-package" onload="true" value="IonicKeyboard"/&gt;
  &lt;/feature&gt;
  </code></pre>
  
  <p>And then apparently everything should work... but it doesn't. Is there something I'm missing?</p>