Ember-cli-focus-input is a set of ember components that provide autofocus (the first input of your form/page).
# Install via npm
$ npm install ember-cli-focus-input --save-dev
# make ember-cli fetch interal dependencies
$ ember g ember-cli-focus-input
{{focus-input value=model.field class="foo"}}
By default the input will be focused and have the content selected. If you prefer not to have the text selected/highlighted configure it like so.
{{focus-input value=model.field class="foo" select="false"}}
{{focus-button value=model.buttonField class="bar"}}
npm install
bower install
ember test
ember test --server
PRs are welcome!
Copyright © 2015 Brandon Williams http://williamsbdev.com
Licensed under the MIT License