Silly directive to give an element focus when it is created.
Install with bower:
bower install --save angular-ivh-auto-focus
Add this module as a dependency to your app:
angular.module('myApp', ['ivh.autoFocus']);
Go forth and apply the ivh-auto-focus directive to your input controls:
<input type="text" ivh-auto-focus />Use npm test to run the full suite of linting, style checks, and unit tests.
Or, run each individually:
- Use
grunt jshintfor linting - Use
grunt jscsfor coding style checks - Use
grunt jasmineto unit tests
For ease of development the grunt watch task will run each of the above as
needed when you make changes to source files.
(nothing yet)
MIT
