0.0.23 • Published 10 years ago

ng-autofocus v0.0.23

Weekly downloads
91
License
-
Repository
github
Last release
10 years ago

This package is deprecated!

Please use the newer ng-focus-if instead!


Usage

Include autofocus.min.js in your build or directly with a <script> tag and require the module in your module definition:

angular  
    .module('App', [  
        'autofocus',  
        ... // other dependencies  
    ]);

To immediately focus an element upon rendering:

<input autofocus />

To focus an element when a specified conditional $scope property becomes truthy:

<input autofocus="focusInput" />

To focus an element after a specified delay upon rendering:

<input autofocus autofocus-delay="500" />

To focus an element after a specified delay when a specified conditional $scope property becomes truthy:

<input autofocus="focusInput" autofocus-delay="500" />
0.0.23

10 years ago

0.0.22

10 years ago

0.0.21

10 years ago

0.0.20

10 years ago

0.0.19

10 years ago

0.0.18

10 years ago

0.0.17

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago