Skip to content

Super simple angular attribute directive to autofocus element upon creation

License

Notifications You must be signed in to change notification settings

manbearwiz/angular-init-focus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular-init-focus

Attribute directive to automatically focus on new elements upon creation.

Usage

  <div ng-repeat="answer in $ctrl.items">
    <input type="text" init-focus>
  </div>
  <button type="button" class="btn btn-link" ng-click="$ctrl.items.push({});">Add</button>

About

Super simple angular attribute directive to autofocus element upon creation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published