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?
Asked
Active
Viewed 237 times
-1
-
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 Answers
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