Skip to content

Instantly share code, notes, and snippets.

View jeponkz's full-sized avatar

Jeffrey Bugahod jeponkz

View GitHub Profile
@jeponkz
jeponkz / autofocus.js
Created September 18, 2020 15:45 — forked from mlynch/autofocus.js
AngularJS Autofocus directive
/**
* the HTML5 autofocus property can be finicky when it comes to dynamically loaded
* templates and such with AngularJS. Use this simple directive to
* tame this beast once and for all.
*
* Usage:
* <input type="text" autofocus>
*
* License: MIT
*/