Using AngularJS how can I focus a text input from a controller?
I have tried using the following:
$scope.myinput.focus();
This throws an error: "undefined' is not an object (evaluating '$scope.myinput.focus')"
The basic situation is to trigger a focus of the input from clicking on another element. Ive created a fiddle to show the problem.
Note: I am not interested in jquery solutions.
Thanks for your help.