1/** 2 * @ngdoc function 3 * @name miller.controller:searchCtrl 4 * @description 5 * # searchCtrl 6 * template: js/templates/search.html 7 */ 8angular.module('miller') 9 .controller('SearchCtrl', function ($scope, $log, $stateParams, $location, StoryFactory) { 10 console.log('SearchCtrl welcome', $stateParams.query); 11 12 // $scope.count = items.count; 13 // $scope.items = items.results; 14 // $scope.query = $stateParams.query; 15 $scope.setCount = function(count) { 16 $scope.count = count; 17 } 18 // $scope.$on('$locationChangeSuccess', function (e, path) { 19 // $log.debug('SearchCtrl @$locationChangeSuccess', $scope.qs); 20 21 // StoryFactory.search(angular.extend({ 22 // q:$scope.query 23 // }, $scope.qs), function(res) { 24 // $scope.count = res.count; 25 // $scope.items = res.results; 26 // }, function(err){ 27 28 // }); 29 // }); 30 });
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.