I\'m new to Ember.js. I want to focus on TextField(in sample, id=\"text\") after initialization, but in ready function, doesn\'t work focus method...
Subclassing TextField
and then spreading a custom View
around your templates seemed a bit messy to me, so I wrote this little 1kb package that lets you do this more elegantly, directly in the template, without any further coding:
You can get it from https://github.com/AndreasPizsa/ember-autofocus
or with bower install ember-autofocus
. I appreciate feedback!