This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* the HTML5 autofocus directive from mlynch/autofocus.js (gist.github.com/mlynch/dd407b93ed288d499778) in es6 | |
* I have changed the attribute to auto-focus not to mess with the regular html attribute autofocus | |
* | |
* Usage: | |
* <input type="text" auto-focus> | |
* | |
* License: MIT | |
*/ | |
export function AutofocusDirective($parse, $timeout) { |