0.0.23 • Published 9 years ago

ng-autofocus v0.0.23

Weekly downloads
91
License
-
Repository
github
Last release
9 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

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago