angular-autofocus

0.1.0 • Public • Published

angular-autofoucs

Simple directive that observes a passed in attribute that sets focus on the element or finds an input that can be focused on.

Usage

angular.module('testModule', ['angular-booleanTranslator']);
 
angular.module('testController', function($scope) {
  $scope.testCondition = true;
});
<div ng-controller="testControler">
  <input type="text" autofocus="{{testCondition}}"/>
</div>

Nice To Haves:

Add a more definitive list of focusable inputs other than just INPUT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.01

Package Sidebar

Install

npm i angular-autofocus

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • mqkalish