In this article, We will discuss then is not a function in angularjs.
I will explain you how to use the .then function in the best way by example which is as follows:-
Example:-
$http({
method: "POST",
url: "User/Test"
}).then(function onSuccess(response) {
// your code if any
}).catch(function onError(response) {
alert("Error");
});
0 comments:
Post a Comment