title: angular js - using ng-click to focus on a text box
body: <p>I'm trying to build an Angular JS form. I'd like user to be able to set the focus on a text field when they click a button. Not sure why this doesn't work? Thanks</p>
  
  <p>html:</p>
  
  <pre><code>&lt;div ng-app="" ng-controller="personController"&gt;
    &lt;p&gt;Name: &lt;input type="text" ng-model="name" id="question1" focus="{{focusThis}}"&gt;&lt;/p&gt;
    &lt;p ng-bind="name"&gt;&lt;/p&gt;
    &lt;input type="button" value="focus" ng-click="focus()"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Angular JS function:</p>
  
  <pre><code>function personController($scope)
     {$scope.focus=function(){
      $scope.focusThis="true";
     };
  };
  </code></pre>