1 2LatestNewsServiceAr = function ($http, $q) { 3 4 var rootServiceUrl = APP_API_ROOT_URL; 5 return { 6 7 fetchLatestNews: function() { 8 var url = "https://api.sesric.org/v1/events/highlights?lang=ar"; 9 return $http.get(url) 10 .then( 11 function(response){ 12 var maxItems = 99; 13 var newList = response.data.slice(0,maxItems); 14 15 return newList; 16 }, 17 function(errResponse){ 18 console.error('Error while latest news'); 19 return $q.reject(errResponse); 20 } 21 ); 22 } 23 24 25 }; 26 } 27 28 29LatestNewsServiceAr.inject = ['$http', '$q'];
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.