az-autofocus
v1.0.0
Published
az-autofocus is a directive that allows you to more easily control focus for specific elements
Downloads
3
Readme
az-autofocus
az-autofocus is a directive that allows you to more easily control focus for specific elements.
Installation
npm install -S az-autofocus
Usage:
Depend on the module
angular.module('yourModule', ['azAutofocus']);
Use it
<input placeholder="Type 'foo'" ng-model="first">
<input placeholder="Type 'bar'" ng-model="second" az-autofocus="{{first === 'foo' && second !== 'bar'}}" refocus focus-wait="250">
LICENSE
MIT