Added custom directive for focus as html5 autofocus does not appear to work with angular js