The function tryFunc() is not called when the input box is focused.
tryFunc()
works with version 1.2.17 See demo
https://gist.github.com/anonymous/35636e7c020d50aeab18
ngFocus is not available on Angular 1.0.7. It's available on Angular 1.2.
You can create your own ngFocus directive, it's quite simple, have a look here:
https://gist.github.com/eliotsykes/5394631