Hi i am very new to Angularjs .I am creating a table row using ng repeat ,row contains input type file so I wants to upload different file from different row . I wants to pass index for each row with onchange method .but index always return zero . Code snippet
input type="file" onchange="angular.element(this).scope().file_changed(this)"
scope.file_changed = function (element) {
var index = angular.element(element).scope().$index;
var files = element.files;
};