Yesterday, I spent 8 hours writing an AngularJS directive for setting focus on an input field. You know, last year we used to just document.getElementById('myfield').focus(), but it's much more reusable and maintainable with a custom 'focusable' directive.
If you want to learn more about the subject: http://stackoverflow.com/questions/14833326/how-to-set-focus...