-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;
});
}
}