Angularjs код обновления не работает, эта ошибка возникает код состояния
: функция (c) {a || (a = v c (b) ); return c? a [M (c)] || null: a}
$scope.Update = function (alumni) {
var obj = {
"bit": true
};
console.log(obj);
var onSuccess = function (data, status, headers, config) {
$scope.result = data;
swal({
text: "Registration successful!",
icon: "success",
buttons: { ok: true }
}).then(val => {
if (val) {
location.reload();
}
});
};
var onerror = function (data, header, status, config) {
swal("error in approving users!, status code : " + status);
}
var promise = $http.put('/api/Examples/' + obj);
promise.success(onsuccess);
promise.error(onerror);
}