---
layout: "docs_api"
version: "unstable"
versionHref: "/docs/unstable"
path: "api/directive/ngFocus/"
title: "ng-focus"
header_sub_title: "Directive in module scripts"
doc: "ngFocus"
docType: "directive"
---

<div class="improve-docs">
  <a href='https://github.com/Famous/famous-angular/edit/master/src/scripts/directives/fa-input.js#L629'>
    Improve this doc
  </a>
</div>





<h1 class="api-title">

  ng-focus



</h1>





Specify custom behavior on focus event.






  
<h2 id="usage">Usage</h2>
  
```html
<ANY ng-focus="expression">

</ANY>
```
  
  
<h2 id="api" style="clear:both;">API</h2>

<table class="table" style="margin:0;">
  <thead>
    <tr>
      <th>Attr</th>
      <th>Type</th>
      <th>Details</th>
    </tr>
  </thead>
  <tbody>
    
    <tr>
      <td>
        ngFocus
        
        
      </td>
      <td>
        
  <code>expression</code>
      </td>
      <td>
        <p><a href="guide/expression">Expression</a> to evaluate upon
focus. (<a href="guide/expression#-event-">Event object is available as <code>$event</code></a>)</p>

        
      </td>
    </tr>
    
  </tbody>
</table>

  

  



<h2 id="example">Example</h2><p>See <a href="../../../api/directive/ngClick/">ngClick</a></p>



