title: How to pass an angular expression variable to ng-focus? ng-focus="setFocus({{var}}"
body: <pre><code>&lt;tr data-ng-repeat=&quot;formGroup in formGroups  |  filter: {page: PAGE_current}&quot;&gt;
  
  &lt;td&gt;
      &lt;input type=&quot;text&quot; id={{formGroup.key}} name={{formGroup.name}}
             ng-focus=&quot;setFocus('{{formGroup.name}}')&quot;
             minlength={{formGroup.min}} maxlength={{formGroup.max}}
             size={{formGroup.size}}/&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  <p>setFocus is called, but the return value is: No help for selected field: {{formGroup.name}}:undefined</p>
  <p>Console Element:</p>
  <pre><code>&lt;input type=&quot;text&quot; id=&quot;lastName&quot; name=&quot;lastName&quot;
         ng-focus=&quot;setFocus('lastName')&quot;
         minlength=&quot;2&quot; maxlength=&quot;20&quot; size=&quot;50/&quot;&gt;
  </code></pre>