$.ajax({
url: url,
type: "POST",
contentType: 'application/json',
data: JSON.stringify($scope.Model)
})
.done(successCallback)
.fail(failureCallback);
function successCallback(){
// on success
}
function failureCallback(){
// on failure
}
url: url,
type: "POST",
contentType: 'application/json',
data: JSON.stringify($scope.Model)
})
.done(successCallback)
.fail(failureCallback);
function successCallback(){
// on success
}
function failureCallback(){
// on failure
}
Comments
Post a Comment