Let's assume autofocus is not enough. I basically want something similar to this functionality
"have ng-show fire a event, then have a directive called autofocus listen for that event and set focus on the element (last one wins)"
Yes. How do I do this? Note I will have a click to work with, so I can set something in my model that the directive could listen to (vs listening to the show). So by last one wins you are saying this will only work if the show is activated before the focus? Is there a way to extend from an existing angular directive and decorate it with some additional functionality? So I could create a show-focus directive that extends the show functionality and adds a elem.focus() at the end? That way I don't have to worry about the "last one wins" scenario correct?
Thanks,
-John