Ionic post data with input type hidden

hello am very new in here…

i cant input data to database using APi

this my html code

{{ dt.student_nam }}

{{ dt.student_id }}


Save Cancel

i have a form and am looping this form… an my data value use data get from API and value for input type hidden, but when submit button click not saved and console value for ng-model is undefined…

this my controllers:

.controller(‘absensiCtrl’,
function ($scope, $http) {

var base_url = 'http://192.168.0.132/quadz/manajemen/index.php/api';

$scope.load = function () {
	$http.get(base_url + '/student/12').success(function (data) {
		$scope.students = data.content;
	})
};

$scope.load();
$scope.absensi = {};
var config = {
	headers : {
		'Content-Type':'application/x-www-form-urlencoded;charset=utf-8;'
	}
};
$scope.save = function () {
	$http.post(base_url + '/savestudent',
		{
			atudentNam:$scope.absensi.atudentNam,
			studentInfoId:$scope.absensi.studentInfoId,
			action:$scope.absensi.action
		},config,absensi)
	.then(function (data,config,absensi) {
		$scope.response = absensi;
	})
}

})

and my console

Objectconfig: Objectdata: Objectaction: undefinedatudentNam: undefinedstudentInfoId: undefined__proto__: Objectheaders: Objectmethod: "POST"paramSerializer: ngParamSerializer(params)transformRequest: Array[1]transformResponse: Array[1]url: "http://192.168.0.132/quadz/manajemen/index.php/api/savestudent"proto: Objectdata: "Disallowed Key Characters."headers: (name)status: 200statusText: "OK"proto: Object

thanks,