I have the following directive to autofocus a field:
.directive(\'ngAutofocus\', function ($timeout) { return { restrict: \'A\', link: fu
You can use document.activeElement to check focus. The only downside being that the HTML needs to be added to the document body for this to work.
document.activeElement
https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement