1'use strict'; 2 3angular 4 .module('app') 5 .directive('focusMe', focusMe); 6 7focusMe.$inject = ['$parse', '$timeout']; 8 9function focusMe($parse, $timeout) { 10 return { 11 link: function(scope, element, attrs) { 12 var model = $parse(attrs.focusMe); 13 14 scope.$watch(model, function(value) { 15 if (value === true) { 16 $timeout(function() { 17 element[0].focus(); 18 }); 19 } 20 }); 21 } 22 }; 23}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.