-3
我得到以下錯誤**(angular.js:14525 TypeError:$ http。 post(...)。成功不是函數atChildScope.BindingCode。$ scope.Submit(ClientSide.html:36)at fn(eval at compile(angular.js:15358),:4:138))** while執行這段代碼。這段代碼被髮送到物體向asp.net的WebAPI和處理之後獲得的數據背
$scope.Submit = function() {
if($scope.Customer.CustomerName.length==0)
{
alert("Not a proper data");
}
else
{
$http.post("http://localhost:59040/api/Customer", $scope.Customer).
success(function (data) {
$scope.Customer = data;
});
}
}