I'm using a directive for autofocusing on an input, but it doesn't appear to be working on touch devices. From my searches I haven't found any solutions that would also apply to touch devices.
How can I expand this directive to also work on touch devices?
'use strict';
shoppingApp.directive('autofocus', ['$timeout', function($timeout) {
  return {
    restrict: 'A',
    link : function($scope, $element) {
      $timeout(function() {
        $element[0].focus();
      });
    }
  }
}]);
 
     
    