vi-angular-autofocus
v1.0.2
Published
AngularJS directive for autofocusing HTML elements
Downloads
2
Readme
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