vi-angular-autofocus

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i vi-angular-autofocus

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • vivifyideas