Set focus in input box using on click - Angular js
<p>Hello I am trying ng_focus on click button like </p>

<p><strong>Input Box Code:</strong><br>
</p>

<pre><code> &lt;input type="text" placeholder="" class="promocode"    ng-focus="focus"  ng-model="text"  value="" /&gt; 
</code></pre>

<p><strong>Button Code:</strong>
</p>

<pre><code>&lt;span ng-click="text = 'sheetesh'; focus=true"&gt; Sheetesh &lt;/span&gt;
&lt;p&gt;focus: {{focus}}&lt;/p&gt;
</code></pre>

<p>And Its return true click on span but focus is not work.</p>

<p><p>focus: true </p></p>

<p>Screen Shot:
     <a href="http://i.stack.imgur.com/f5EFY.png" rel="nofollow">its showing like that</a></p>