1.0.2 • Published 7 years ago

vi-angular-autofocus v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Angular Autofocus

Description

AngularJS directive for autofocusing HTML elements. When element with the directive is added to DOM, it will automatically get the focus.

Installation

npm install --save vi-angular-autofocus

or

bower install vi-angular-autofocus

or

yarn add vi-angular-autofocus

Register the module into your main app module

angular.module('myApp', ['vivify-ideas.angular-autofocus']);

Usage

In the template, use the vi-autofocus directive:

HTML

<input name="name" type="text" vi-autofocus/>

LICENCE MIT

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago