angular-focus-it

AngularJS module to focus an HTML input element.
Homepage:
1 person uses it
Author: 226773?v=3 hewerthomn

Angular FocusIt module

AngularJS module to focus an HTML input element.

Installation

Run the bower's install command or download this repository.

Include the angular-focus-it.min.js file.

Configuration

Add the focusIt module in your app dependencies.

Usage

To use in your controller, add focus in your controller dependencies.

Using in the directives:

  • The focus-id attribute to set the id of the target element to focus.
  • The focus-on attribute to set the event name to trigger the focus.

Example

Demo online

License

Angular FocusIt is freely distributable under the terms of the MIT license.

comments powered by Disqus
This page was last updated over 2 years ago.