The issue I am facing is that in the code snippet below, the function readCSV()
is not being triggered when buttons for filepath1
and filepath2
are clicked. The function is only executed on form load. I was expecting it to work on button click as well.
I would appreciate any assistance with this matter.
Thank you!
<!DOCTYPE html>
<html ng-app="test" ng-controller="homePage">
... (original code snippet) ...
Script section
var test=angular.module("test",[]);
test.controller('submitController',function readCSV($scope, $http){
var csv = "hello";//$scope.csvPath;
$scope.filePath1;
alert(csv);
});