I have to submit array of values using jquery and angularjs. When i click submit button i'm getting only first array value. How to get all array value using ng-model.Here is my all code https://jsfiddle.net/rijo/6dLxhr7j/ Script code given below
$scope.onSubmit = function(){
sum = $scope.obj;
console.log(sum);
$http({
method : 'POST',
url : 'admin_controller.php',
data: $.param(sum),
headers: {'Content-Type': 'application/x-www-form-urlencoded'}
}).then(function (response) {
console.log("OK");
});
}
Please any one can help.. Thanks!