-1

I am trying to count the excel data and give an alert message in angularjs. Does anyone know how to write the code for counting record in angular service?

enter image description here

Pramod Gharu
  • 1,105
  • 3
  • 9
  • 18
  • var uploadDataServiceFactory = {}; uploadDataServiceFactory.uploadData = function(uploadDataDTO) { return $http.post(uploadDataURL, uploadDataDTO) .then(function(results) { console.log(results); //console.log($scope.story); $log.debug(results); return results.data; }, function() { $log.error("error"); return []; }); }; – Hariprasath.r Aug 12 '16 at 05:55

1 Answers1

0

External library exists to parse an xls file like : https://github.com/SheetJS/js-xlsx.

I suggest to you to read this stack : How to parse Excel file in Javascript/HTML5

Community
  • 1
  • 1
Silvinus
  • 1,445
  • 8
  • 16